Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing many forms at once 1

Status
Not open for further replies.

BCarruth

Programmer
Feb 8, 2001
19
US
Is there a way to close 3-4 forms at once. Say that many were open and I wanted to get back to my main menu from the 4th form is there a way to code it so the other 3 forms also close?
Thanks
Bob
 
You would have to go in and create a macro and select close and select the forms to close.
 
Assuming that you are using a command button to close the 4th form, add this code to the Click Event:

DoCmd.Close acForm, "frm1stForm"
DoCmd.Close acForm, "frm2ndForm"
DoCmd.Close acForm, "frm3rdForm"
DoCmd.Close acForm, "frm4thForm"

If I understand your post correctly, this should provide a solution.

Let me know if it works.
Larry De Laruelle
larry1de@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top