pangono
Bored out of my brain
- Local time
- Today, 09:10
- Joined
- Mar 16, 2007
- Messages
- 10
Ok, having problems with a simple database I'm doing for a cafe.
I have a form Stock (listing details of stock items) with a subform StockSubform2 (listing inventory movements). In the Stock from it lists the current quantity, the unit price and total value at hand. It's in the quantity control where I am having a problem.
I have created fields in the subform to get the Max unit cost (txtMaxUnitCost) and Sum the total purchased (txtTotalPurchased), total sold (txtTotalSold) and wastage (txtTotalWastage).
To then calculate the current quantity I have used the expression: =StockSubform2.Form!txtTotalPurchsed - StockSubform2.Form!txtTotalSold - StockSubform2.Form!txtTotalWastage.
The relevant fields in the Inventory table are: UnitCost, UnitsPurchased, UnitsSold, Wastage.
I have a form Stock (listing details of stock items) with a subform StockSubform2 (listing inventory movements). In the Stock from it lists the current quantity, the unit price and total value at hand. It's in the quantity control where I am having a problem.
I have created fields in the subform to get the Max unit cost (txtMaxUnitCost) and Sum the total purchased (txtTotalPurchased), total sold (txtTotalSold) and wastage (txtTotalWastage).
To then calculate the current quantity I have used the expression: =StockSubform2.Form!txtTotalPurchsed - StockSubform2.Form!txtTotalSold - StockSubform2.Form!txtTotalWastage.
The relevant fields in the Inventory table are: UnitCost, UnitsPurchased, UnitsSold, Wastage.