I have following calculated field in a query and returned with an error. I double checked the syntax and found nothing wrong. Did I overlook something? You help is appreciated.
BattCheck: IIf([NoofBatt]<1 Or [R-NoofBatt] <1,"No","Yes")
The expression you entered contains invalid syntax.
You omitted an operand or operator, you entered an invalid character or comma, or you entered text without surrounding it in quotation marks.

BattCheck: IIf([NoofBatt]<1 Or [R-NoofBatt] <1,"No","Yes")
The expression you entered contains invalid syntax.
You omitted an operand or operator, you entered an invalid character or comma, or you entered text without surrounding it in quotation marks.