i think your recieving an error message because you have to use the format:
IIf(expr, truepart, falsepart)
in your first statement, you have given the expression and the true part, but not the false part; instead you have gone onto another argument!
try changing it around abit and c if it...