Hello,
I am working on a inventory management DB for a casino. my basic concept is to be able to have a total of each kind of part, and be able to tell where the parts are stored. there are more functions to be added but this part is causing me grief.
i have 7 unique storage areas including a repair bench. each of those have racks, shelf's and bins with parts.
The easy way i see to do this is simply create a table.
partstorage
PSID - Primary Key (autonumber)
partID - Foreign Key to part in part table (Number)
PSA - PartstorageA - Number of parts total in area A (Number)
PSB - PartstorageB - Number of parts total in area B (Number)
Etc...
PST - PartstorageText - a text or memo field that will hold the info of what rack, shelf and bin parts are on.
Parts can be moved between the storage areas or used in a machine. I could create a form to look at those totals and create buttons to move from one to another. But i wouldn't know how many are in rack 1 shelf 4 bin 3
What i want is that, to know how many are in a certain bin. Do i need to create 3 tables?
parts, Binlocation and partstorage
Parts
partID - PrimaryKey (Autonumber)
mypart - Identifer we refer to it by (text)
etc
Binlocation
bid - PK (Autonumber)
binid - the representation area, rack, shelf & bin
partstorage
psid - PK
bid - FK
partID - FK
qty - the quantity of parts in this bin (number)
I will want to do a total query for a certain part in each area and the total amout of a part.
this is only maybe 25% of the total project but it is what is currently giving me fits. I await your wisdom.
Ted