
Originally Posted by
Voodeux2014
So, in other words, you are saying that I should have all of the different assets combined into one table? Ive learned from the beginning of when i started playing with Access it is better to break tables up as it makes it easier to manage. Have I taught myself wrong?
It's better to break tables up where the data is not duplicated. For instance the make/model of a monitor is not going to change over time and it's universal no matter what type of equipment it is.
So for instance you have a different table for computers printers, phones, monitors, accessories
All of that stuff could be in the same table and the information that is unique to the type of equipment would be stored in the sub tables.
So for instance you have a serial number, model all your tables as far as I can tell (but not manufacturer which is odd!)
So you could have a table that tells you what type of device it is (or what category you want it in)
Code:
TypeID TypeDesc
1 Computer
2 Monitor
3 Accessory
then in your equipment table you would add a filed for the typeID to help you categorize them.
Then in your table PECComputers you would store the foreign key to your equipment table and any other information that was relevant to that piece of equipment. For instance on your current table PECComputers you have 'currentname', 'currentuser' along with 'video type' so you can do one of two things. Either you can put the 'video type' on the equipment table, and suppress that field during data entry if they do not choose a relevant category (monitor, phone?) or you can have your table store those 1 or 2 piece of information that relate specifically to computers, personally I favor the former because this is going to be a 'static' list of items once they are entered the first time.
You'd want a separate table for the history of users (if that's important) or, again you could put it on the main equipment table if the only thing you care about is the current user)
Lastly I see in your computers table you have the ability to add up to 4 monitors which I assume would be the PK from the monitors table instead of pecmonitor1 through 4 you should have a junction table which would store the processor ID (servicetag?) and the 'secondary' pieces of equipment attached to that computer (monitors, mice, etc)