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

Making a subreport conditionally invisible

edited September 2005 in General
Hi,
If the DB calc (sum) in the summary of a subreport is = zero then I want to
make the entire subreport invisible.
How do I do this?

I tried:
===
procedure SubReport1OnPrint;
if DBCalc1.Value = '0' then
SubReport1.Visible := true
else
SubReport1.Visible := false;
===

but got the error:

Error: SubReport1OnPrint, Line 4: Undeclated Identifier: 'SubReport1'.

What am I doing wrong?


Thanks
Redmond

Comments

This discussion has been closed.