The IIf function requires parentheses around its arguments, as shown in the following syntax:
IIf(expr, truepart, falsepart)