Jerry Stoner
04-13-2002, 09:24 AM
Ive done this before with no problem but cant seem to get it to work this time.I've a subform in continous view with fields txtUnitCost and txtQtySold.In the footer txtSubTot =[txtUnitCost]*[txtQtySold] gives the total for each record.ie. Record 1 txtUnitCost is 500.00 and txtQtySold is 5 it returns 2500.00. Record 2 txtUnitCost = 100 and txtQtySold = 1 txtSubTot = 100.00.
What I need is the total for all records in the subform ie. 2600.00. Tried =Sum([txtUnitCost]*[txtQtySold]) and I get #Error.The idea of course is to get the total for all products ordered on an invoice to show in the main form but I cant seem to get a sum of all records in the subform to show. The Footer of the subform is not visible and I am refering to the subform correctly =([frmTransDet].Form![txtSubTot]).Any Help?
[This message has been edited by Jerry Stoner (edited 04-13-2002).]
What I need is the total for all records in the subform ie. 2600.00. Tried =Sum([txtUnitCost]*[txtQtySold]) and I get #Error.The idea of course is to get the total for all products ordered on an invoice to show in the main form but I cant seem to get a sum of all records in the subform to show. The Footer of the subform is not visible and I am refering to the subform correctly =([frmTransDet].Form![txtSubTot]).Any Help?
[This message has been edited by Jerry Stoner (edited 04-13-2002).]