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

RGB background value 1

Status
Not open for further replies.

rhoneyfi

MIS
Apr 8, 2002
200
US
Hello, I have Crystal 9.0 and I am doing a conditional format formula and I need to color the background of the object a particular shade of red.

Normally, I would do the formaula like this:

if {field_name} <5000 then red else white

but in this case, the red needs to be the RGB values of
R=169, G = 0, B= 43.

How do I specifiy in the formaula these RGB values? Can it be done? Thanks
 
Try this:
Code:
if {field_name} < 5000 then
    Color(169,0,43)
else
    white

~Brian
 
Try:

if {field_name} <5000 then
color(169,0,43)
else
white

That's Crystal syntax, use RGB for Basic.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top