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!

Help with changing the backcolor based on criteria

Status
Not open for further replies.

d1004

Programmer
May 9, 2002
78
US
I am having with changing the back color based on the criteria. Basically, if cost2 field is greater than cost1 field, display the data with green back color. Otherwise, display data with white back color. In the control source property, I click on the Expression Builder to write my IIF statement.

IIf([cost1] > [cost2], [cost] AND [cost].backcolor = 108854, [cost] AND [cost].backcolor = 567893)

I think my code and syntax are probably not correct, so can you help me with this problem.

Thank you so much
Di
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top