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 / May 2007

Tip: Looking for answers? Try searching our database.

Exit the form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alan T - 22 May 2007 05:52 GMT
I have a main form calls a second form.
In the second form there is a button I want to exit the second form when the
button is pressed.
What code I should use in the on click event of the button?
Albert D. Kallal - 22 May 2007 05:58 GMT
Just use the wizard to make the button.....

The code you can use (if you don't want to use the wizard to build the
button) is:

docmd.close

Signature

Albert D. Kallal    (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com

Alan T - 22 May 2007 07:54 GMT
Thanks

> Just use the wizard to make the button.....
>
> The code you can use (if you don't want to use the wizard to build the
> button) is:
>
> docmd.close
 
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.