Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Font Color Issue Post Reply Post New Topic
Author Message
psalm19
Groupie
Groupie
Avatar

Joined: 19 Feb 2009
Online Status: Offline
Posts: 48
Quote psalm19 Replybullet Topic: Font Color Issue
    Posted: 09 Mar 2009 at 4:00pm
CR 10.0
 
I'm attempting some conditional formatting on a particular formula. Basically, if the field in the formula is less than 50% margin then I want it to change the font color to red. I made the change by going into "format editor" on the formula itself and adding the formula below under the font color section; it works well except for the fact that it also changes 100% margins. How do I get it to NOT change the color on margins which report "100%"? Crazy Crystal! )
 
Font formula:
If {@QUOTE TOTAL MARGIN} < "50" then Red
 
Field formula, if it matters:
If ({tblQuotes.TotalNetSell} = 0)
then "N/A"
else ToText (((({tblQuotes.Profit}) / {tblQuotes.TotalNetSell}) * 100), 1) + "%"
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 09 Mar 2009 at 5:07pm
assuming you want black if not red try:
 
If {tblQuotes.TotalNetSell} = 0 then crblack else
if (({tblQuotes.Profit})%({tblQuotes.TotalNetSell}))>49 then crblack else crred
IP IP Logged
psalm19
Groupie
Groupie
Avatar

Joined: 19 Feb 2009
Online Status: Offline
Posts: 48
Quote psalm19 Replybullet Posted: 09 Mar 2009 at 5:37pm

DBlank,

That did the trick, thank you very much for your helpful insight!

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.