Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: change font color if then else Post Reply Post New Topic
Author Message
cbaldwin
Groupie
Groupie


Joined: 09 Apr 2014
Online Status: Offline
Posts: 81
Quote cbaldwin Replybullet Topic: change font color if then else
    Posted: 24 Oct 2014 at 4:34am
I have the following statement:

if ({COMPONENT_INVENTORY.ABO_CD}="ab"and Count({COMPONENT_INVENTORY.UNIT_NO},{COMPONENT_INVENTORY.ABO_CD})- {?Adequate AB FFP/FP24}>0)then Count({COMPONENT_INVENTORY.UNIT_NO},{COMPONENT_INVENTORY.ABO_CD})- {?Adequate AB FFP/FP24} else 0

I would like to force the else answer to have a black font and the then answer to have a lime font.

Suggestions.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 24 Oct 2014 at 7:23am
if currentfieldvalue=0 then crblack else crlime
 
unless you want to make sure that even if answer the the IF = 0 it is lime...
IP IP Logged
cbaldwin
Groupie
Groupie


Joined: 09 Apr 2014
Online Status: Offline
Posts: 81
Quote cbaldwin Replybullet Posted: 24 Oct 2014 at 8:26am
worked like a charm... thanks.
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.031 seconds.