IIf funtion based on multiple criteria

J

Jennifer

I have the following expression but want the criteria to include 2 fields:

IIf(IsNull(
),2,1)

If HR is null AND NARC is null I want a 2 otherwise a 1.

Thank you for your help.
 
M

Marshall Barton

Jennifer said:
I have the following expression but want the criteria to include 2 fields:

IIf(IsNull(
),2,1)

If HR is null AND NARC is null I want a 2 otherwise a 1.




IIf(IsNull(
) And IsNull(NARC),2,1)

will do what you asked, but without any context I have no
way of knowing if that's the best way to do it or even if
that is what you need to do.
 

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