edubbelaar
New member
- Local time
- Today, 22:13
- Joined
- Nov 24, 2004
- Messages
- 6
Hello all,
I'm dealing with this strange issue for some time:
In my Access VBA code a want to check if a required text field is not empty. Therefore I used the follow code:
But this function is not working. When a change the code to:
its working fine.
Could anyone tell me what the difference is between those functions?
And when (and how) do you use the terms ‘IsNull’ or ‘Null’
What's the difference between ‘Null’ and ‘""’ for a string?
Thanks in advice!
I'm dealing with this strange issue for some time:
In my Access VBA code a want to check if a required text field is not empty. Therefore I used the follow code:
Code:
If ReqField = "" Then
MsgBox ("Oops...")
Else
MsgBox ("Okay, let's continue!")
End If
Code:
If ReqField <> "" Then
MsgBox ("Okay, let's continue!")
Else
MsgBox ("Oops...")
End If
Could anyone tell me what the difference is between those functions?
And when (and how) do you use the terms ‘IsNull’ or ‘Null’
What's the difference between ‘Null’ and ‘""’ for a string?
Thanks in advice!