V
Victoria
I recently read that there is a danger in using IIf in VBA because both
outcomes are evaluated whether this is necessary or not. For example, the
following code crashes, even though division by 0 isn't an expected outcome.
dblValue = IIf(intP = 0, 0, intQ/intP)
This concerns me because I have lots of IIf statements in my SQL WHERE
clauses, though I haven't noticed a problem. Does SQL have the same
difficulty with IIf that VBA does?
Vicky
outcomes are evaluated whether this is necessary or not. For example, the
following code crashes, even though division by 0 isn't an expected outcome.
dblValue = IIf(intP = 0, 0, intQ/intP)
This concerns me because I have lots of IIf statements in my SQL WHERE
clauses, though I haven't noticed a problem. Does SQL have the same
difficulty with IIf that VBA does?
Vicky