IIF

P

Pete

Hello,

I would like to enter two criteria in a IIF statement. I
don't know if this is possible.

Example: IIF([table1.ID]=1 or 2, "YES", "NO")

I cannot get this to work. It will not evaluate the 1 or 2
part of the statement. Any answers to this?

Thanks

Pete
 
D

Duane Hookom

Watch your bracketing of your object names and try:
Example: IIF([table1].[ID]=1 Or [table1].[ID]=2, "YES", "NO")
 
P

Pete

Thank you very much!
-----Original Message-----
Watch your bracketing of your object names and try:
Example: IIF([table1].[ID]=1 Or [table1].[ID] =2, "YES", "NO")

--
Duane Hookom
MS Access MVP
--

Hello,

I would like to enter two criteria in a IIF statement. I
don't know if this is possible.

Example: IIF([table1.ID]=1 or 2, "YES", "NO")

I cannot get this to work. It will not evaluate the 1 or 2
part of the statement. Any answers to this?

Thanks

Pete


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top