sum values from details in the subform

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have a form with customer name that i can specify, and by defining the
customer i will have detail revenue info by product in the subform.

Now i want to have another column in the main form showing the sum revenue
(of all products) belonging to this customer, should I link the code to the
customer column or to the subform?

I am trying to write a code that leverage a query, how do i link a query to
an interactive form like this? Any comments will be very appreciated.
 
i have a form with customer name that i can specify, and by defining the
customer i will have detail revenue info by product in the subform.

Now i want to have another column in the main form showing the sum revenue
(of all products) belonging to this customer, should I link the code to the
customer column or to the subform?

I am trying to write a code that leverage a query, how do i link a query to
an interactive form like this? Any comments will be very appreciated.

Sorry to be so late replying to this.

You can put a textbox on the Footer of the subform with a control
source

=Sum([Revenue])

to sum the value of the subform's recordsource field of that name.

Neither this sum nor the individual by-product sums should be stored
in any table. Just calculate them as needed.

John W. Vinson[MVP]
 

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