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

change font color in field 1

Status
Not open for further replies.

ajdesigns

Technical User
Jan 26, 2001
154
GB
Hi.
I have to change the color of the font in a field if that field contains certain letters at the end.
eg.if the field value was 1234cd I want this to be red so it is highlighted.
if the field value was 1234 I would like the font color to remain black.
I realise you need to use wildcards but I have tried "*cd" and "????cd"
but niether works please could someone help.
thanks
Andrew D.
 
I think you could just go to format field->font->color->x+2 and enter:

if right({table.field},2) = "cd" then crRed else crBlack

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top