Solved

Creating and Loading a form

Posted on 2002-07-07
4
130 Views
Last Modified: 2010-05-02
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
Comment
Question by:Linky
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
xSinbad earned 50 total points
ID: 7136712
you have to set the form name;


Dim X as Form
set x = Form1
X.Show

0
 
LVL 2

Expert Comment

by:nahumd
ID: 7136967
Or :
Dim X as new Form1
x.show
0
 
LVL 2

Author Comment

by:Linky
ID: 7137869
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
 
LVL 2

Author Comment

by:Linky
ID: 7138612
I fixed it. Thanks for your help.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now