G
Guest
I have a form called frmSales based on a table called tblSales. The main
form has a subform called subfSale_details based on a table called
tblSale_Details. The two tables are linked by Sale_No. tblSale_Details
contains the details of the Sale - Item_No, Cost, Qty & subfSale displays
these records & a computed text box called TotCost=Cost*Qty. I want to
compute the total cost for the sale on the main form, Sum(TotCost). I have
tried basing the main form text box on a query & get "#Name?" in the control,
and on an expression =Sum([subfSale_Details].Form!TotCost)and get "#Error" in
the control. There has to be a way to do this, but I have not found it yet.
Any help would be greatly appreciated.
Thanks, Garry
form has a subform called subfSale_details based on a table called
tblSale_Details. The two tables are linked by Sale_No. tblSale_Details
contains the details of the Sale - Item_No, Cost, Qty & subfSale displays
these records & a computed text box called TotCost=Cost*Qty. I want to
compute the total cost for the sale on the main form, Sum(TotCost). I have
tried basing the main form text box on a query & get "#Name?" in the control,
and on an expression =Sum([subfSale_Details].Form!TotCost)and get "#Error" in
the control. There has to be a way to do this, but I have not found it yet.
Any help would be greatly appreciated.
Thanks, Garry