Close Forms

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
 
S

SusanV

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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top