Two tables: tblOrderDetail and tblOrder
Two forms: frmOrderDetails (subform) and frmOrders
Common data field of each table is “Order#” (key in tblOrders and non-key/required in tblOrderDetal)
In subform frmOrderDetails, I am able to calc tblOrderDetails.ExtAmt (currency) field using a CALC textbox assoc with VBA code to multiply Quan, Amt and Discount (if any) fields but …
I want to also sum ExtAmt field for all records per “Order#” in tblOrderDetail and store summed total in TotalOrderAmount field of tblOrders.
Assume VBA is the best way to do this via an Event associated with the subform, but cannot find an example anywhere on the net and am reluctant to remove the few remaining hairs on my head trying to further figure on my own.
Would appreciate sage suggestions from those with greater wisdom and experience.
Thanks in advance.
Two forms: frmOrderDetails (subform) and frmOrders
Common data field of each table is “Order#” (key in tblOrders and non-key/required in tblOrderDetal)
In subform frmOrderDetails, I am able to calc tblOrderDetails.ExtAmt (currency) field using a CALC textbox assoc with VBA code to multiply Quan, Amt and Discount (if any) fields but …
I want to also sum ExtAmt field for all records per “Order#” in tblOrderDetail and store summed total in TotalOrderAmount field of tblOrders.
Assume VBA is the best way to do this via an Event associated with the subform, but cannot find an example anywhere on the net and am reluctant to remove the few remaining hairs on my head trying to further figure on my own.
Would appreciate sage suggestions from those with greater wisdom and experience.
Thanks in advance.