Can IIf function have the following form:
IIf( *condition*, IIf(*condition*, *expression*, *expression))
I looked up every kind of explanation of IIf functions and all the sources say that IIf functions has to have the following form and every part of it is required:
IIf(*condition*, *expression*, *expression)
Well this one --- IIf( *condition*, IIf(*condition*, *expression*, *expression)) does not correspond to the above required form as the nested IIf statement evaluates to one expression, the second one is missing...So basically the above nested IIf statement has one condition and only one expression, yet it works just fine in one of the queries that I'm working on.
Can IIf statement have more then one condtion like :
IIf(*condition_1* and *condition_2*, *expression*, *expression*)
Thanks so much!
Valeriya
IIf( *condition*, IIf(*condition*, *expression*, *expression))
I looked up every kind of explanation of IIf functions and all the sources say that IIf functions has to have the following form and every part of it is required:
IIf(*condition*, *expression*, *expression)
Well this one --- IIf( *condition*, IIf(*condition*, *expression*, *expression)) does not correspond to the above required form as the nested IIf statement evaluates to one expression, the second one is missing...So basically the above nested IIf statement has one condition and only one expression, yet it works just fine in one of the queries that I'm working on.
Can IIf statement have more then one condtion like :
IIf(*condition_1* and *condition_2*, *expression*, *expression*)
Thanks so much!
Valeriya