Happy Monday everyone!
I am trying to define two types of data in one query; maybe that's why it's not quite working. I have account code and task code which I am trying to define the earn code for payroll purposes: This is my IIF statement if you could help me, it would be so very much apprectiated:
EARNC: IIf([Acct Code]=5104100,"REG",IIf([Acct Code]=5112100,"VAH",IIf([Task]='00059',"BPR")))
Acct Code is number format and task is text. Thanks for any help; I really appreciate it!

I am trying to define two types of data in one query; maybe that's why it's not quite working. I have account code and task code which I am trying to define the earn code for payroll purposes: This is my IIF statement if you could help me, it would be so very much apprectiated:
EARNC: IIf([Acct Code]=5104100,"REG",IIf([Acct Code]=5112100,"VAH",IIf([Task]='00059',"BPR")))
Acct Code is number format and task is text. Thanks for any help; I really appreciate it!