Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Supress main report if Subreport null Post Reply Post New Topic
Author Message
cfrey
Groupie
Groupie


Joined: 06 Feb 2008
Location: United States
Online Status: Offline
Posts: 55
Quote cfrey Replybullet Topic: Supress main report if Subreport null
    Posted: 11 Nov 2009 at 6:29am
Is there a way to suppress a group in the main report if the results of a liked subreport are null?


Thank you for your help.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 11 Nov 2009 at 8:02am
Possibly. The theory here is to use a shared variable that flags for suppression or not. However the variable has to reside on the report canvas above the section that you want to suppress in order to use it. So your problem becomes getting the variable to be before the group header. Perhaps you can create a GHa,b and c.
A is the subreport location, B is the shared variable location and C is Group Name display location that can be suppressed or shown based on the value in GHb?
I think that might work but have not tested it out. You can also search this site for more tips on this as I know similar questions have been addressed.
IP IP Logged
cfrey
Groupie
Groupie


Joined: 06 Feb 2008
Location: United States
Online Status: Offline
Posts: 55
Quote cfrey Replybullet Posted: 11 Nov 2009 at 8:24am
Actually that did work. I had gone as far as two levels and could not get it to work. The third level did it.

Thank you so much for help. Great idea!!
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.