Solved

Help with VB 4.0 and forms

Posted on 1998-08-27
4
127 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
[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 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
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…

756 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