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

How can I make sure variable calculations are done only on second pass?

edited June 2001 in General
In a report I've created with 2 groups, I track the number of subgroups per
outer group
(Thanks to Jim Bennet for your help). I want to show a total of these
counts in the summary
band.

In my test report, I have four subgroups found on the first pass, and an
additional one found
on the second pass.

The result RB comes up with is 9. From imbedding showmessages, I found that
the four subgroups
found on the first pass are counted a second time on the second pass. Is
there any way to stipulate
calculations are done on the second pass only?


Thanks in advance,
Brian

Comments

  • edited June 2001
    How about:


    procedure TForm1.ppVariable1Calc(Sender: TObject; var Value: Variant);
    begin

    if ppReport1.SecondPass then
    Value := ...

    end;


    --
    --
    Robert Leahey
    TRX Technology Services
This discussion has been closed.