Close Forms

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a "Main Menu" switchboard style form that has numerous buttons that
open forms. Each button opens a form, and each form has a menubar/toolbar
that has a "Exit", "Main Menu", "Filter", etc. buttons at the top. Once I
open a form and press the "Main Menu" button, the original form stays open.
How can I close this form using this "Main Menu" button. I am not sure where
the vba code would be.

Thank You - Tim
 
In the On Click event of the "Close Form" button, put 2 lines - one to
reopen the Main Menu form and one to close this form:
DoCmd.OpenForm "MainMenuForm
DoCmd.Close acForm, "ThisFormsName"
 
Back
Top