iif function

yanliang

New member
Local time
Today, 17:47
Joined
Sep 10, 2020
Messages
7
I need to create a query for certified employees.
the certified field is called "certified?" and is Yes/No
If an employee is certified I need to input "Eligible for Bonus" if not "Enroll in Summer MG Class"

I inserted in a function
iif([Certified?]="Yes","Eligible for Bonus", iif([Certified?]="No", "Enroll in Summer MG Class"))
but when I run the field it keep showing up #error.
I don't know why.
 
only test for 1 condition.
Yes/No field can either be True or False (Yes or No).

iif([Certified?], "Eligible for Bonus", "Enroll in Summer MG Class") As Remarks
 
thankyou so much
 
you're welcome!
 

Users who are viewing this thread

Back
Top Bottom