Hi,
Am I correct in saying that the following will still error because access doesn't quit an if statement the minute the evaluation fails / meets the criteria
I'm getting invalid use of null error, yet the first test should match and so not bother with the next test.
Why would an if statement test every expression when it has already made its match?
Thanks,
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
Am I correct in saying that the following will still error because access doesn't quit an if statement the minute the evaluation fails / meets the criteria
Code:
Dim myDate As Date
If Nz(myDate,"") = "" Or myDate < now() Then
'do something
End If
I'm getting invalid use of null error, yet the first test should match and so not bother with the next test.
Why would an if statement test every expression when it has already made its match?
Thanks,
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music