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
SusanV - 17 Jul 2007 16:38 GMT
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"

Signature
hth,
SusanV
>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
[quoted text clipped - 6 lines]
>
> Thank You - Tim