?
Solved

Unload all MDI.Childs

Posted on 1998-11-30
2
Medium Priority
?
229 Views
Last Modified: 2010-05-03

How do you unload all MDI.Childs but NOT the
application or the MDI.


0
Comment
Question by:s_mccolgan
2 Comments
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1447448
Maybe try the following
Dim f as form
on error resume next
for each f in mdi.childs
      unload f
next
0
 
LVL 1

Accepted Solution

by:
wizard2072098 earned 100 total points
ID: 1447449
Here's a real simple piece of code that will do it. You can get a lot fancier if necessary.

For i = Forms.Count - 1 To 0 Step -1
     If Forms(i).MDIChild = True Then
        Unload Forms(i)
     End If
Next i

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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 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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month15 days, 1 hour left to enroll

840 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