Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Suppress the subreport if records are "0"

Status
Not open for further replies.

OLTU

Technical User
Feb 14, 2005
39
NL
Hi,

CR version 8.5

Can someone pls tell me how to suppress the subreports if I have no records and when I have the rcords then I will see it.

Thx
MHP.[gorgeous]
 
For Crystal 8.5, you have to use a work-round:
a) Copy the subreport
b) Place the subreport in some higher section, and make it as small as possible.
c) Use Shared Variables to pass back a value, that will indicate whether or not the subreport should be suppressed.
d) Use this returned value to determine whether or not to suppress the main copy of the subreport.

Later versions of Crystal allow dirct suppression. But this method works.

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top