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

Multiple IIF Statement Help 1

Status
Not open for further replies.

ecugrad

MIS
Apr 17, 2001
191
US
Need a little help on a IFF Statment: I'm trying to use the below, but I thing I have it formatted wrong. Any help would be appreciated.



MType:IIF(([ProbEnd]) between #4/16/06# and #5/15/06#,1,4)OR
IIF(([ProbEnd]) between #5/16/06# and #6/15/06#,2,4)OR
IIF(([ProbEnd]) between #6/16/06# and #7/15/06#,3,4)

Thanks,
Mike
 
Try nesting your IIF statements...

IIF(([ProbEnd]) between #4/16/06# and #5/15/06#,1,IIF(([ProbEnd]) between #5/16/06# and #6/15/06#,2,IIF(([ProbEnd]) between #6/16/06# and #7/15/06#,3,4)))
 
I just used your answer to adapt my multiple-criteria from list box query. I've been looking for an answer to my 'missing bracket placement' for days now. THANK YOU SO MUCH FOR THIS INFORMATION!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top