Partial Report footer sum

R

Raul Sousa

I have a report with several movementType and there respective values.
At the footer of each MovementType (type A, Type B, Type C) I have a sum.
Now at the report foot I want to calculate type B – TypeC.
How can I do this?
 
M

Marshall Barton

Raul said:
I have a report with several movementType and there respective values.
At the footer of each MovementType (type A, Type B, Type C) I have a sum.
Now at the report foot I want to calculate type B – TypeC.


A quick and dirty way is to use text boxes with expressions
like:
=Sum(IIf(MovementType = "A", valuefield, 0))

But that will be troublesome if you ever need to add/remove
a type or change the name of an existing type.

A robust solution to your problem would be to create a
Totals type query that calculates the totals. Then use the
query as the basis for a small report and use it as a
subreport in your current report.
 

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