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

Dynamically Change TextColor of Formula

Status
Not open for further replies.

Jefftopia

Programmer
Jul 30, 2002
104
US
I have a formula which resides in a subreport. The results of this formula are either "Pass" or "Fail". I would like the textcolor for the result to be displayed in green for "Pass" and red for "Fail".

Anyone ever done something like this before. Not sure if I should be attempting to change the color in the Initialize event procedure of my main report or handling directly in the formula itself.
 
Right click the field and select Borders and Colors->Font->X-2 next to the color and place something like:

If {@MyFormula} = "pass" then
crgreen
else
crred

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top