creating subtotals and grand totals on a report?

G

Guest

I feel like I have tried everything!
All I want to do is calculate a subtotal on a report, and then add up all
those totals for a grand total at the bottom.

My report contains: Quantity, Product, and ProductPrice
I want to subtotal each line (quantity*productprice) and then sum all those
calculations into a grand total at the bottom. Does anyone know how to make
this happen?
-Thanks
 
M

Marshall Barton

nikki said:
I feel like I have tried everything!
All I want to do is calculate a subtotal on a report, and then add up all
those totals for a grand total at the bottom.

My report contains: Quantity, Product, and ProductPrice
I want to subtotal each line (quantity*productprice) and then sum all those
calculations into a grand total at the bottom. Does anyone know how to make
this happen?


Add a text box to the detail section and set its control
source expression to =quantity * productprice

Then add a text box to the report footer section using this
expression =Sum(quantity * productprice)
 
D

Duane Hookom

In the detail section, use:
=quantity*productprice
In any Group or the Report Footer, use:
=Sum(quantity*productprice)
 
M

Marshall Barton

Duane said:
In the detail section, use:
=quantity*productprice
In any Group or the Report Footer, use:
=Sum(quantity*productprice)


The elegance of your solutions shines once again, Duane.
 

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

Top