Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comparing Null

Status
Not open for further replies.
Oct 22, 2001
215
US
OK I guess I am not thinking .... Can any one help me on this?
I am setting a value at some point of my program as 'Null'
(X =null)
Now when I am comparing the Null it does not return 'True'
(If X is Null or Y is Null then
'Do this
else: msgbox "X or Y is not valid"
Exit
End If
)

Waht am I missing here? Thanks
 
I don't know what type of variable you are using for x, but instead of setting it to Null, try setting x = "".

This has worked well in my applications, but again I don't know what you are using x for.
 
Hi,
take a look at Help - Variant Data Type Skip,
metzgsk@voughtaircraft.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top