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!

IIf function issue 1

Status
Not open for further replies.

mmaginniss

Technical User
Jun 9, 2003
20
US
Hi-

I am having issues with the IIf function. What I am trying to do is use multiple conditions within an IIf function. At first, I created a calculated field with the following expression:

Sort: IIf([ProjectManager] Is Null,1,0)

This worked fine, giving null values a value of 1, and non-null values a value of 0, which I then used to sort my report. Of course, now I want to sort "None" strings as well. So, when I tried the following calculated field it didn't work:

Sort: IIf([ProjectManager] Is Null Or "None",1,0)

Any ideas how I could sort both field values of Is Null Or None with this function? [dazed]

Thx.
 
You need explicit comparisons
Code:
   Sort: IIf(IsNull([ProjectManager]) Or [ProjectManager] = "None",1,0)
 
You are almost there. Try

Sort: IIf([ProjectManager] Is Null Or [ProjectManager] = "None",1,0)




Ascii dumb question, get a dumb Ansi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top