Print Page | Close Window

How to suppress a field based on a suppressed fiel

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Technical Questions
Forum Discription: Formulas, charting data, Crystal syntax, etc.
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=212
Printed Date: 05 May 2024 at 3:52am


Topic: How to suppress a field based on a suppressed fiel
Posted By: RosalindP
Subject: How to suppress a field based on a suppressed fiel
Date 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



Replies:
Posted By: BrianBischof
Date 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>


Posted By: RosalindP
Date Posted: 14 Feb 2007 at 6:05pm
Thanks for the suggestion.  I'll try it out.



Print Page | Close Window