Closing Main Form

EndersG

Registered User.
Local time
Today, 23:21
Joined
Feb 18, 2000
Messages
84
I have a main form that I use as the switchboard form. It helps me navigate through various other forms (around 3-4) I have in my application. I want to include an OnClose procedure in VBA code that will prevent me from closing the main form until all other forms are closed. I want the Main Switchboard form to include a cmd button that ask: "Do you want to exit? Y/N". After the user selects Y, it runs it check against any open forms and asks the user to close them before proceeding. ANy one have any ideas?

Thanks.
 
If you set other forms to pop up modal yes then you can't get to the main form untill they are closed.
 

Users who are viewing this thread

Back
Top Bottom