IIF question (1 Viewer)

Scolds

Registered User.
Local time
Today, 06:54
Joined
May 19, 2004
Messages
15
This is easy and I think I have forgotten how

I want to return a Pass or Fail on a number being between 2 values
ie ResidualChlorineFreeAns: IIf([tblWater]![ResidualChlorineFree]>1 &<5,"Pass","Fail")

Of course it is not working

Thanks in advance
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 00:54
Joined
Feb 19, 2002
Messages
43,768
You need to repeat the fieldname and & is not a valid relational operator.

ResidualChlorineFreeAns: IIf([tblWater].[ResidualChlorineFree] > 1 AND [tblWater].[ResidualChlorineFree] < 5, "Pass", "Fail")
 

Scolds

Registered User.
Local time
Today, 06:54
Joined
May 19, 2004
Messages
15
Thanks

Thanks Pat,
See I knew it was easy the same as I know how I am not so good. :)
 

Users who are viewing this thread

Top Bottom