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 / New Users / September 2005

Tip: Looking for answers? Try searching our database.

Adding two actions with Comand Button Wizard

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tom - 23 Sep 2005 19:48 GMT
Can I use the Comand Button Wizard to add more than one action to a comand
button? I would like to open one form and close the current form with a
command button. Do I need to use a macro?

Tom
fredg - 23 Sep 2005 22:30 GMT
> Can I use the Comand Button Wizard to add more than one action to a comand
> button? I would like to open one form and close the current form with a
> command button. Do I need to use a macro?
>
> Tom

Just add the second action to the first action in the order you wish
them to occur:

DoCmd.OpenForm "FormName"
DoCmd.Close acForm, Me.Name
Signature

Fred
Please only reply to this newsgroup.
I do not reply to personal email.

John Vinson - 24 Sep 2005 06:15 GMT
>Can I use the Comand Button Wizard to add more than one action to a comand
>button? I would like to open one form and close the current form with a
>command button. Do I need to use a macro?
>
>Tom

The Wizards aren't that clever; but you can use the wizard to do one
of these actions, and then edit the VBA code which the wizard created
to add the other action. See Fred's suggestion for just how to do so.

                 John W. Vinson[MVP]    
 
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.