MuskokaMad
Registered User.
- Local time
- Today, 03:35
- Joined
- Feb 28, 2010
- Messages
- 29
Thanks for the help... Brain must still be saturated with the Stout from last night (2 Nights in a row = Brain Dead)
I have a Form called frm_NewOrderEntry2 with 3 tab controls with subforms sfrm_NewOrderDetails, sfrm_Payments and sfrm_DeliveryDetails.
I have a Query qry_OrderTotal that Calculates the Total of the OrderDetails.
SELECT tbl_OrderDetails.Order_ID, Sum(tbl_Products.RetailPrice) AS SumOfRetailPrice, Sum(((([Price]*[Quantity])*(100-[Discount])/100)*1.15)) AS OrderTotal
FROM tbl_Products INNER JOIN tbl_OrderDetails ON tbl_Products.ID = tbl_OrderDetails.Product_ID
GROUP BY tbl_OrderDetails.Order_ID
HAVING (((tbl_OrderDetails.Order_ID)=[Forms]![frm_NewOrderEntry2]![txtID]));
I want to put the returned Value OrderTotal in a control on the Payments Subform so that I can confirm that the Payments are equal to the Order.
How do I do this?
Jason
I have a Form called frm_NewOrderEntry2 with 3 tab controls with subforms sfrm_NewOrderDetails, sfrm_Payments and sfrm_DeliveryDetails.
I have a Query qry_OrderTotal that Calculates the Total of the OrderDetails.
SELECT tbl_OrderDetails.Order_ID, Sum(tbl_Products.RetailPrice) AS SumOfRetailPrice, Sum(((([Price]*[Quantity])*(100-[Discount])/100)*1.15)) AS OrderTotal
FROM tbl_Products INNER JOIN tbl_OrderDetails ON tbl_Products.ID = tbl_OrderDetails.Product_ID
GROUP BY tbl_OrderDetails.Order_ID
HAVING (((tbl_OrderDetails.Order_ID)=[Forms]![frm_NewOrderEntry2]![txtID]));
I want to put the returned Value OrderTotal in a control on the Payments Subform so that I can confirm that the Payments are equal to the Order.
How do I do this?
Jason