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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

global variabel is changed between pages 1

Status
Not open for further replies.

AndersRM

Technical User
Apr 18, 2011
2
SE
I created a formula field with
whilePrintingRecords;
global stringvar showText
The variabel will be set to "1" for a certain criteria.
In a another section, with the formula field with the text to show, I have marked Suppress and a condition
whilePrintingRecords;
global stringVar showText;
if showText="1" then
true
else
false;

My problem is that if the report will be more than one page and the second formula field is on page 2 then variabel is changed to "0". Why? What do do?
 
You don't need to use global variables unless you are passing data back from a subreport. But I doubt that is the cause of your problem. Probably you have another field that sets it, in the page header or footer.

It would also be easier to use Crystal's versatile system of automatic totalling, wherever possible. If you're not already familiar with Crystal's automated totals, see FAQ767-6524. Saves a lot of time and less prone to error.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 11.5 with SQL and Windows XP [yinyang]
 
How is the value of "showText" set? What is the content of the formula that sets that and where is it located?

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top