Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Help with VB 4.0 and forms

Posted on 1998-08-27
4
Medium Priority
?
131 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 100 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…
Suggested Courses

824 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