Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Calculating the grand total from subtotals in a subreport

edited September 2003 in General
Hi,

I have a subreport with a TppDBCalc component which calculates the sum of a
field in that subreport. On the main report i'd like to display the sum of
those subtotals (displayed in the subreport). How can i do that?

I tried to use a TppVariable (with Timing for CalculateOn set to Traversal)
in the main report, but i encountered two problems:
- the varable is calculated before the DBCalc component in the subreport is
(causing a wrong result of the total)
- if i display a page more than once, the subtotals on that page are
considered more than once (causing a wrong (too big) total result).

Any suggestions?

Thanx

Comments

This discussion has been closed.