Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running Total in Form from ubform

Status
Not open for further replies.

freefour

MIS
Joined
Aug 26, 2004
Messages
33
Location
US
Hey all,

Inside my invoice form, I have a subform where people enter in parts description, the quanity, and the parts price. I also have another field that totals quanity * price. As they are entered I am looking for a way to have a text field on the Invoice form that shows a running total of all parts charges inside the subform.

Any help would be greatly appreciated!

Thanks!
 
In the footer section of the continuous subform have a TextBox, say txtRunningTotal, with ControlSource set to:
=Sum([quantity] * [price])
And set the ControlSource of the textbox in your main form to:
=Me![name of subform control].Form.Controls("txtRunningTotal")
You may have to play with the ReCalc method of the form object.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top