Making a subreport conditionally invisible
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
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
This discussion has been closed.
Comments
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com