Calculation in Access Form and Subform

  • Thread starter Thread starter Fav
  • Start date Start date
F

Fav

I want to add all sub-totals in my sub-form to a total in the main form. How
do I do it
 
You need to pull them all together in an event; possibly the OnCurrent event
of the form...(although I'm not 100% certain the subform values are set
before the main form is current...try it)....or maybe you want to put in a
calc button and use its OnClick event...

Each value is identified by: Me.SubformName.Form!ControlName

the 'Me' and the 'Form' are literal - otherwise insert your actual names
 
add an unbound text box on your form with a Control Source like

=SubFormName.Form!Subtotal1+SubFormName.Form!Subtotal2+SubFormName.Form!Subtotal3...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top