scouser
Registered User.
- Local time
- Today, 22:33
- Joined
- Nov 25, 2003
- Messages
- 767
Hi guys. I have been attempting to add an asset tracking function to my database. I have a table 'tblAssetIdList' which holds all the available asset ID's. Asset ID's can be allocated to either Computers from tblComputers, Software from tblSoftware and finally Hardware from tblHardware.
I initially created additional tables to hold details of the allocations: tblComputerAssetIdAllocation, tblHardwareAssetIdAllocation & tblSoftwareAssetIdAllocation. I then created queries from the above tables and then forms from the queries to allow for data input.
The one flaw (quite obvious really) is that asset ID's should be unique. Although unique Asset ID's are required in the individual tables I am able to allocated the same Asset ID to the different tables. (i.e. A20222 can be allocated to only one computer in tblComputers but can also be allocated to both Hardware & Software once).
I then tried creating a single table tblAssetIdAllocation with fields:
ID
AssetID
ComputerID
SofwareID
HardwareID
These linked to the appropiate tables. However if I allocated an asset ID for computers then the same asset id was then allocated to hardware & software.
I must be close (only taken 2 days to get it wrong!!
)
Help Appreciated,
Phil.
I initially created additional tables to hold details of the allocations: tblComputerAssetIdAllocation, tblHardwareAssetIdAllocation & tblSoftwareAssetIdAllocation. I then created queries from the above tables and then forms from the queries to allow for data input.
The one flaw (quite obvious really) is that asset ID's should be unique. Although unique Asset ID's are required in the individual tables I am able to allocated the same Asset ID to the different tables. (i.e. A20222 can be allocated to only one computer in tblComputers but can also be allocated to both Hardware & Software once).
I then tried creating a single table tblAssetIdAllocation with fields:
ID
AssetID
ComputerID
SofwareID
HardwareID
These linked to the appropiate tables. However if I allocated an asset ID for computers then the same asset id was then allocated to hardware & software.
I must be close (only taken 2 days to get it wrong!!

Help Appreciated,
Phil.