PDA

View Full Version : How to close all of opened windows/applications except my application?



Yance
12-29-2010, 11:28 PM
Hi, is there are anyone here can help me how to close all opened windows/applications except my application?

Imdabaum
12-30-2010, 09:46 AM
Function CloseForms()
'Close all open forms
Dim frm As Form
For Each frm In Forms
DoCmd.Close acForm, frm.Name
Next
End Function

Yance
12-30-2010, 06:23 PM
Function CloseForms()
'Close all open forms
Dim frm As Form
For Each frm In Forms
DoCmd.Close acForm, frm.Name
Next
End Function
Thank you for your reply, but i don't mean the form's window of my own application. But i want to close all window of opened application except my application

Imdabaum
01-04-2011, 07:53 AM
Oh. Now that would be a different beast to slay. I'll see what I can come up with and try to post back soon.