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

Problem with Conditional formatting

Status
Not open for further replies.

48Highlander

Technical User
Feb 8, 2004
119
CA
I want to change the background color of a text box if the value of another control is null or = "". I have the following expression in the Expression Is box but the color does not change.

Code:
nz(txtQBDepositID,"") = ""

txtQBDepositID is a bound control

What am I doing wrong?

Bill J
 
Have you checked that it will change color with something simple, 1=1, for example?
 

Conditional Formatting is kind of persnickety; it requires square brackets around control names, like this:

nz([txtQBDepositID],"") = ""

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 

How about this?
Code:
nz([COLOR=red][b][[/b][/color]txtQBDepositID[COLOR=red][b]][/b][/color],"") = ""

Randy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top