Nothing

M

Michael Wong

Ok, I've been programming Access since last and if I ask the following
question, you might think I'm a bit wierd...

I have a global variable:
Dim globalMyForm As Form_MyForm

What is the correct way to know whether is has been set to an instance of a
form?

If globalMyForm = Nothing ?
 
M

Michael Wong

Thanks a lot, it was so simple...

George Nicholson said:
If globalMyForm Is Nothing Then ...

--
George Nicholson

Remove 'Junk' from return address.


of
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top