Print Page | Close Window

Combining formulas

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=14650
Printed Date: 31 Oct 2024 at 1:51pm


Topic: Combining formulas
Posted By: robertwhiting
Subject: Combining formulas
Date Posted: 11 Oct 2011 at 11:49pm

Hi I have the below formula (1) which I need to add to so it also will suppress if formula (2) is correct but whenever I try it does not work can anybody help?

Formula 1

WhilePrintingRecords

Global blnSuppress As Boolean

Formula = blnSuppress

Formula 2

{Access.MODE}=3




Replies:
Posted By: asam
Date Posted: 26 Dec 2011 at 11:17am
If the purpose of "Formula " is to conditionally suppress some section, (for example Group Footer #4), in the report based on the value of a global variable (blnSuppress) that is set in some other section (like detail c) then I would just
use the Conditional Suppress of GroupFooter#4 to say - - in crystal syntax - -
"Global blnSuppress As Boolean;
blnSuppress OR {Access.MODE}=3;



Print Page | Close Window