bakerajatha
Technical User
Having problems with a Stock control and movment database. Im gaving trouble with the relationships between defining stock and their locations. I have at the moment
Table 1
PartID Autonumber, primary key)
ModelPartID (type of equipment, defined in further table)
Badge
Serial
Status
Table2
stockID Autonumber, primary key)
StockLocation
partID
Quantity
My problem is that a part will either have a Badge/serial number in which case it must be only ever one part in one location
( ie IBM Monitor badge a12345 is in location 'repair shelf')
However a non serialed part may have the same part may have multiple lications and multiple quantity
(i.e. i have 2 mice in 'stock' and 3 mice in 'repair shelf')
As a further complication the badges items must always have a location, ( in-accept, stock, customer site x etc), howeever the non-badged parts does not need a customer location ( nobody cares) , only the various stock/repair locations
Now have I got my tables/relationship ok and just have to keep plugging away at forms and their VB, or has someone done this before and can suggest a better(easier) way to go?
Table 1
PartID Autonumber, primary key)
ModelPartID (type of equipment, defined in further table)
Badge
Serial
Status
Table2
stockID Autonumber, primary key)
StockLocation
partID
Quantity
My problem is that a part will either have a Badge/serial number in which case it must be only ever one part in one location
( ie IBM Monitor badge a12345 is in location 'repair shelf')
However a non serialed part may have the same part may have multiple lications and multiple quantity
(i.e. i have 2 mice in 'stock' and 3 mice in 'repair shelf')
As a further complication the badges items must always have a location, ( in-accept, stock, customer site x etc), howeever the non-badged parts does not need a customer location ( nobody cares) , only the various stock/repair locations
Now have I got my tables/relationship ok and just have to keep plugging away at forms and their VB, or has someone done this before and can suggest a better(easier) way to go?