I am attempted to create an IIF AND function in a query field. I have the following expression but for some reason the AND will not work.
Expr3: IIf([EXPR1]=1 And [EMPLOYED]="YES","YES",IIf([EXPR1]=1 And [EMPLOYED]="NO","NO",IIf([EXPR1]=0,"NA")))
The last section {IIF([EXPR1]=0,"NA")} works but any part of the expression that has "And" returns a #error message.
Any ideas on how I can correct this issue? Thanks!
I am also not apposed to a switch( solution to this problem as I have other IIF functions that are needed but I am running in to the same issue with the switch( function as well.
Expr3: IIf([EXPR1]=1 And [EMPLOYED]="YES","YES",IIf([EXPR1]=1 And [EMPLOYED]="NO","NO",IIf([EXPR1]=0,"NA")))
The last section {IIF([EXPR1]=0,"NA")} works but any part of the expression that has "And" returns a #error message.
Any ideas on how I can correct this issue? Thanks!
I am also not apposed to a switch( solution to this problem as I have other IIF functions that are needed but I am running in to the same issue with the switch( function as well.
Last edited: