K
KevinK
I have a query that is intended to update the quantity and total cost for
items purchased. This query is run after a new purchase order is entered.
It’s updated off the form so the current information is the only qty and cost
that are added to only the items purchased. This update query gets the
information from the PurchOrderDetailtbl. Here the criteria for that query.
The Itemtbl is linked to the PurchOrderDetailtbl by ItemID
The field in the Itemtbl, TotalQty has update to:
NZ([TotalQty],0)+[PurchOrderDetailtbl]![PQty]
The field in the Itemtbl, TotalCost has update to:
NZ([TotalCost],0)+[PurchOrderDetailtbl]![Inventory]
The field in the PurchOrderDetailtbl, PurchaseOrder has the criteria:
[Forms]![PurchOrderAddfrm]![PurchOrder]
I have a button on the PurchOrderAddfrm that I push after all the new or
existing items have been added to the PurchOrderDetailtbl.
After I push the button I get the standard message for update queries, but
the next message says it will update 0 records.
items purchased. This query is run after a new purchase order is entered.
It’s updated off the form so the current information is the only qty and cost
that are added to only the items purchased. This update query gets the
information from the PurchOrderDetailtbl. Here the criteria for that query.
The Itemtbl is linked to the PurchOrderDetailtbl by ItemID
The field in the Itemtbl, TotalQty has update to:
NZ([TotalQty],0)+[PurchOrderDetailtbl]![PQty]
The field in the Itemtbl, TotalCost has update to:
NZ([TotalCost],0)+[PurchOrderDetailtbl]![Inventory]
The field in the PurchOrderDetailtbl, PurchaseOrder has the criteria:
[Forms]![PurchOrderAddfrm]![PurchOrder]
I have a button on the PurchOrderAddfrm that I push after all the new or
existing items have been added to the PurchOrderDetailtbl.
After I push the button I get the standard message for update queries, but
the next message says it will update 0 records.