Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: How to suppress a field based on a suppressed fiel Post Reply Post New Topic
Author Message
RosalindP
Newbie
Newbie


Joined: 14 Feb 2007
Online Status: Offline
Posts: 2
Quote RosalindP Replybullet Topic: How to suppress a field based on a suppressed fiel
    Posted: 14 Feb 2007 at 2:37pm
Hi
 
I have a subreport where I have suppressed a field if it's a duplicate.  I want to suppress a second field based on the first field being suppressed.  Is there a way to this.  In p-code something like
 
if {first field} is suppressed then suppress {second field}
 
Thanks for any help
RosalindP
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 14 Feb 2007 at 3:35pm
You can't do such a thing, but you could copy the same formula logic from the first field into the second. That way they are both suppressed at the same time.

Ummm... wait a minute, you COULD set global variable and set it to true or false within the first formula. Then in the second formula check the variable's value. Just make sure you reset it each time so that you don't accidentally get a carryover from a prior record.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
RosalindP
Newbie
Newbie


Joined: 14 Feb 2007
Online Status: Offline
Posts: 2
Quote RosalindP Replybullet Posted: 14 Feb 2007 at 6:05pm
Thanks for the suggestion.  I'll try it out.
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.063 seconds.