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

Supress Formulas

Status
Not open for further replies.

sforeakertsc

Technical User
Joined
Feb 28, 2002
Messages
1
Location
US
I have a variable called "counter" in a formula. When counter is > 20 I want to supress certain fields in the record from displaying.

Since Crystal says all it's variables are Global when using Crystal Syntax, I figuered a simple "Counter > 20" in the fields suppress formula would do the trick...but the formula errors out.

Any ideas why?

Thanks,

Steve
 
What type of error are you getting?

I use exactly what the logic you are talking about all the time to supress records, EXCEPT I use running total fields and not variables. Having said that I think either should work.

Software Support for Macola, Crystal Reports and Goldmine
dgillz@juno.com
 
I solved this. The issue was that I did not declare the variable as global in the original formula (becasue Crystal says all Crystal Syntax variables are implicitly Global), and I was not declaring the variable in the second formula.

Once I declared it in both formulas as global, then the simple:

counter > 20

formula worked great!

Thanks for the reply.

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top