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 / Forms Programming / March 2005

Tip: Looking for answers? Try searching our database.

close a form upon opening another.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
postman - 10 Mar 2005 23:53 GMT
How to automatically close a form upon opening another.

I have two forms, the first prepares data for the second form, and have the same table.  The second form is opened from a control button on the first.
I would like the first form to be closed when that button is hit, if possible.

Thanks in advance
Douglas J. Steele - 11 Mar 2005 00:11 GMT
In the button's Click event, after you've issued the DoCmd.OpenForm, put
DoCmd.Close acForm, Me.Name:

   DoCmd.OpenForm "MyOtherForm"
   DoCmd.Close acForm, Me.Name

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

How to automatically close a form upon opening another.

I have two forms, the first prepares data for the second form, and have the
same table.  The second form is opened from a control button on the first.
I would like the first form to be closed when that button is hit, if
possible.

Thanks in advance.
 
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



©2008 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.