Solved

Creating and Loading a form

Posted on 2002-07-07
4
134 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

690 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