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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sum of values on a subform 1

Status
Not open for further replies.

jlindquist

Programmer
Jun 8, 2001
14
0
0
US
I have a form with a bunch of preliminary order information. I then have a continuous subform on this form. Part of that data is "Amount". Part of the original form is the "Total". I want the "Total" on the main form to be equal to the sum of all the "Amount" fields on the subform. Any idea how to do this easily?
 
I have a sample database I can send you that does this if you provide your email address. It utilizes the DSum() function if you want to try and figure it out yourself. Here's the basic format of a DSum expression:

=DSum("[FieldToSum]","QueryOrTableToSumFrom","[Criteria]=[Criteria]")

HTH Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top