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

Nested IIF() expression error

Status
Not open for further replies.

lanm

Programmer
Joined
Jul 7, 2005
Messages
244
Location
US
=IIF(
Fields!Start_Date.Value = cstr("01/01/1900"), "X",
IIF(
isdbnull(Fields!Start_Date.Value),"X",""))

Basically, I have to check for a smalldatetime field, and if it's "01/01/1900" or <NULL>, then the textbox has to have a value of "X" to let the user know they need to fill it in!

Thanks!
 
Well, of course the following is now working:

=IIF(
Fields!Start_Date.Value = cstr("01/01/1900"), "X",
(
IIF(
isdbnull(Fields!Start_Date.Value),"X","")
)
)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top