How can I make sure variable calculations are done only on second pass?
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
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
This discussion has been closed.
Comments
procedure TForm1.ppVariable1Calc(Sender: TObject; var Value: Variant);
begin
if ppReport1.SecondPass then
Value := ...
end;
--
--
Robert Leahey
TRX Technology Services