Solved

Unloading Forms. (Easy)

Posted on 1998-08-13
3
153 Views
Last Modified: 2010-04-30
How would I go about unloading All of my loaded forms when one main form is unloaded.
0
Comment
Question by:hess
3 Comments
 
LVL 1

Accepted Solution

by:
jsuper earned 10 total points
ID: 1468722
Place the following code in the Form_Unload subroutine of your main form...

dim vForm as form
for each vform in forms
     unload vform
next vform
0
 

Author Comment

by:hess
ID: 1468723
Great. Thanks
0
 

Expert Comment

by:Snell
ID: 1468724
Actually, you could put this in the form_unload part...

Sub Form_unload()
End
End sub

now isnt that easy?
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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 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…

773 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