Lord Kelvan said:
I couldn't find it in the documentation either, so I tried a quick test. Ten
does indeed appear to be the limit. I tested by starting with a simple
expression in a query ...
Test: IIf(True, True, False)
I then copied the entire IIf() statement, selected the word False, and
pasted in the copied statement ...
Test: IIf(True, True, IIf(True, True, False))
.... and continued selecting the world False and pasting until I had ten
levels of nested IIf() statements ...
Test:
IIf(True,True,IIf(True,True,IIf(True,True,IIf(True,True,IIf(True,True,IIf(True,True,IIf(True,True,IIf(True,True,IIf(True,True,IIf(True,True,False))))))))))
This statement was executed without error, but the addition of one more
level resulted in the error "the expression you entered contains invalid
syntax".