reverentcreature
New member
- Local time
- Today, 02:31
- Joined
- Dec 6, 2008
- Messages
- 8
Hi all I have the following tables in my database where I am experiencing problems figuring out what I need to do
TBLJOBPARTS
JobPartJobID
JobPartAction
JobPartPartID (foreign)
JobPartQuantity
TBLPARTS
PartID (Primary)
PartMake
PartModel
TBLSTOCK
StockPartID (foreign)
StockEngineerID
StockQuantity
When a user adds the parts used/fixed/serviced in the subform (a query on tbljobparts) he/she pulls in a part from a parts table. I need the JobPartQuantity when entered deduct somehow from the StockQuantity.
My problem is there is no direct relationship between TBLSTOCK and TBLJOBPARTS. They are only related via TBLPARTS. Also, for the stock to be deducted from the correct van(engineer), any query would need to filter for both PARTID and ENGINEERID.
Any help would be much appreciated.
TBLJOBPARTS
JobPartJobID
JobPartAction
JobPartPartID (foreign)
JobPartQuantity
TBLPARTS
PartID (Primary)
PartMake
PartModel
TBLSTOCK
StockPartID (foreign)
StockEngineerID
StockQuantity
When a user adds the parts used/fixed/serviced in the subform (a query on tbljobparts) he/she pulls in a part from a parts table. I need the JobPartQuantity when entered deduct somehow from the StockQuantity.
My problem is there is no direct relationship between TBLSTOCK and TBLJOBPARTS. They are only related via TBLPARTS. Also, for the stock to be deducted from the correct van(engineer), any query would need to filter for both PARTID and ENGINEERID.
Any help would be much appreciated.
Last edited: