[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 139
  • Last Modified:

Creating and Loading a form

I have been coding so, I will just get to the point. Here is my code:

Dim X as Form

X.Show

I get Run-Time Error 91, Object or Variable not set. How can I get this to work, code would help.
0
Linky
Asked:
Linky
  • 2
1 Solution
 
xSinbadCommented:
you have to set the form name;


Dim X as Form
set x = Form1
X.Show

0
 
nahumdCommented:
Or :
Dim X as new Form1
x.show
0
 
LinkyAuthor Commented:
Both of those do not work. xSinbad, I get Object required (Error 424). And nahumd, you have a good method but that is not what I was looking for. Thanks though.
0
 
LinkyAuthor Commented:
I fixed it. Thanks for your help.
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now