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

How to calculate a sum on a subform

Status
Not open for further replies.

hdesbiens

Programmer
May 2, 2004
77
CA
Hi

i have a form list of invoice, that form contains a subform called listallinvoices that shows me alle the invoices in the system.

I have manu dropdown fields that filter the subform depending on what we want it to be filtered or sorted.

What i want to dow is put sumsubtotal, sumtps, sumtvq, sumtotal fields on my form that will calculate all the records contained in my subform.

Is there an easy way to do that?

Thanks a lot
 
You can use Sum in the subform footer. In a textbox:

=Sum([Total])
 
Ok thanks

i trying to do that but it seems that in datasheet mode the field that i put in the footer does not appear?

is it possible to do that in a datasheet subform?

thanks a lot
 
Not that I know of. You get much more control with a continuous form. A continuous form can be made to look very like a datasheet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top