Hello:
I am writing an expression in a query to check whether any of 5 Yes/No fields returns the value of Yes. I wrote the following nested IIF function, however, it returns an error:
BPIssue: IIF([Field1]="Yes", "Yes", IIF([Field2]="Yes","Yes",IIF([Field3]="Yes","Yes",IIF([Field4]="Yes","Yes",IIF([Field5]="Yes","Yes","No")))))
What I am trying to accomplish is the same as the IF(OR( function in Excel. Any ideas?
I am writing an expression in a query to check whether any of 5 Yes/No fields returns the value of Yes. I wrote the following nested IIF function, however, it returns an error:
BPIssue: IIF([Field1]="Yes", "Yes", IIF([Field2]="Yes","Yes",IIF([Field3]="Yes","Yes",IIF([Field4]="Yes","Yes",IIF([Field5]="Yes","Yes","No")))))
What I am trying to accomplish is the same as the IF(OR( function in Excel. Any ideas?