Solved

Help with VB 4.0 and forms

Posted on 1998-08-27
4
124 Views
Last Modified: 2010-04-30
I cant get the other forms to show in a prog with the frm.show thing, It says Object required...and then the prog closes...I was wondering if you could help me...I heard I might need to make a DLL file, or get one.
0
Comment
Question by:Klueny2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:waty
ID: 1431260
If your command is

   frm.show

"frm" should be a valid form or even a variable used as following :

   Dim frm     as New Form

   Set frm = frmMainWindow

   frm.Show
0
 

Author Comment

by:Klueny2
ID: 1431261
It says Sub or function not defined with "set"
0
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 50 total points
ID: 1431262
You have to use .Shoe on a form that exists, like if you have a form named form2, use form2.Show
anything else will generate an error
0
 
LVL 14

Expert Comment

by:waty
ID: 1431263
frmMainWindow should be a valid form in your project. It has been givan as a sample
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

785 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