Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / July 2007

Tip: Looking for answers? Try searching our database.

Close Forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tlynn - 17 Jul 2007 16:22 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.