IIF Between (two numbers not cells) expression

A

akelly13

I want to write a statement that goes something like if [smrhcc] is not null
then " ", if [smrhcc] is between 110 and 160, then pass, else fail. Below is
what I have written so far, why is it passing everything except the null
values in which it leaves blank? Can someone please help me?

IIf(IsNull([smrhcc])," ",IIf(([smrhcc]) isBetween 110< And >160,"pass","fail")
)

Thanks,
Amanda
 
S

Stefan Hoffmann

hi Amanda,
IIf(IsNull([smrhcc])," ",IIf(([smrhcc]) isBetween 110< And >160,"pass","fail")
)
Try this one:

IIf( IsNull([smrhcc]),
" ",
IIf( [smrhcc] BETWEEN 110 AND 160,
"pass",
"fail"
)
)

Remove the line breaksbefore using it.


mfG
--> stefan <--
 

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