Hi everyone,
I hope I'm able to explain myself with the problem I'm having. I've provided a couple of screen capture which may help.
I'm using Access 2007 and I'm trying to design a database for my stock inventory which I can then use to interrogate for order, purchasing stock check purposes etc.
My product stock has a few different types of steel extrusions such as Box, Angle, Flat etc. I have tables with fields which describe their differing attributes. Each of these type of steel extrusions will have actual stock associated with them, the most important attribute of which is the length of the item. This particular stockItems table has the same fields for every single type of extrusion and I would like to have just one table for this which keeps track of all of the actual stock I have rather than my current design which as to repeat this table for every type of extrusion.
The first image on the left is the way it's set up now, which has to repeat a lot of the same fields in differing tables for the actual stock items.
The second image is how I want to design it, but the problem I'm having is that I can't enforce referential integrity, which I keep reading is a very important aspect of database design.
Does anyone have any idea how I can design this so I have one table to keep track of track items and mainting referential integrity.
I'm sorry if this isn't explained very well and is a little long!
Kind regards,
Dave
I hope I'm able to explain myself with the problem I'm having. I've provided a couple of screen capture which may help.
I'm using Access 2007 and I'm trying to design a database for my stock inventory which I can then use to interrogate for order, purchasing stock check purposes etc.
My product stock has a few different types of steel extrusions such as Box, Angle, Flat etc. I have tables with fields which describe their differing attributes. Each of these type of steel extrusions will have actual stock associated with them, the most important attribute of which is the length of the item. This particular stockItems table has the same fields for every single type of extrusion and I would like to have just one table for this which keeps track of all of the actual stock I have rather than my current design which as to repeat this table for every type of extrusion.
The first image on the left is the way it's set up now, which has to repeat a lot of the same fields in differing tables for the actual stock items.
The second image is how I want to design it, but the problem I'm having is that I can't enforce referential integrity, which I keep reading is a very important aspect of database design.
Does anyone have any idea how I can design this so I have one table to keep track of track items and mainting referential integrity.
I'm sorry if this isn't explained very well and is a little long!
Kind regards,
Dave