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

Use IIF to control background color of calculated text field

Status
Not open for further replies.

jkejke

Programmer
Jan 18, 2001
35
US
Is it possible to use IIF to control backgound color of a calculated text box on a form--do not think conditional formatting will work--have tried--
 
yes it is and quite easy too.

MyTxtBox.BackColor = IIF("your criteria", true color, false color)

HTH
 
Thanks

Now that I look at what you sent--I think I had a severe
brain cramp..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top