Hi,
My IsNull statement is not working (or at least not how I would expect it to!). Maybe I misunderstand the use of the function.
My statement is:
StrAllCriteria = "" (isn't that null?). Yet processing skips the first statement and goes to the Else. To satisfy my curiosity, I added:
If strAllCriteria = " " Then
debug.Print "it is blank"
ElseIf strAllCriteria = "" Then
Debug.Print "it is null"
Else: Debug.Print "i do not know"
End If
It prints 'it is null'.
Why isn't the IsNull statement true, then?
What have I done wrong?
My IsNull statement is not working (or at least not how I would expect it to!). Maybe I misunderstand the use of the function.
My statement is:
Code:
If IsNull(strAllCriteria) Or strAllCriteria = " " Then
strPunctuation = " "
Else
strPunctuation = ";"
End If
If strAllCriteria = " " Then
debug.Print "it is blank"
ElseIf strAllCriteria = "" Then
Debug.Print "it is null"
Else: Debug.Print "i do not know"
End If
It prints 'it is null'.
Why isn't the IsNull statement true, then?
What have I done wrong?