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

Conditional Formatting Not Working

Status
Not open for further replies.

ETCS

Technical User
Joined
Jul 21, 2008
Messages
38
Location
US
I have created a cross tab report in Crystal XI. I need to display any negative numeric value as red rather than the default of black. This is the formula I am using in the format editor for font color:

If {SigVarBalances.Variance} < 0 Then crRed Else crBlack

My problem is that, when using this formula, all of the values are Red, even when they are not less than zero. (I am also having a problem doing the same type of background formatting based on the value in my header fields but that's not critical.)

I've never had this issue in a non cross tab report. Any thoughts?
 
Use:

If currentfieldvalue < 0 Then
crRed Else
crBlack

-LB
 
Perfect! Never heard of that one before. You are the master!

Thanks,
etcs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top