initialize form object

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If I have a variable that is a form object, how do I initialize that? Or
rather, how do I detect if the variable has been set or not?
 
to initialize such variable you can either set if to opened form:
set frm=forms("MyForm")
or create a new instance:
set frm= new form_MyForm

to detect if it set - you can use Is Nothing:

if frm is nothing then
'not set
end if
 

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

Back
Top