I'm having a challenge with an If/Then statement relative to a "NULL".
I can't get the code to identify the "NULL" and process the "IF". I have tried = "", = "NULL" and = NULL.
Regards,
John
Null Variable Assistance
-
- GoldLounger
- Posts: 2629
- Joined: 26 Jan 2010, 16:31
- Location: Southern California
Null Variable Assistance
You do not have the required permissions to view the files attached to this post.
Regards,
John
John
-
- Administrator
- Posts: 78488
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Null Variable Assistance
Use the IsNull function:
If IsNull(objRecordset.Fields(ReturnField)) Then
If IsNull(objRecordset.Fields(ReturnField)) Then
Best wishes,
Hans
Hans
-
- GoldLounger
- Posts: 2629
- Joined: 26 Jan 2010, 16:31
- Location: Southern California