Run multiple Append Queries

joeserrone

The cat of the cul-de-sac
Local time
Today, 14:32
Joined
Dec 17, 2006
Messages
164
Hello,
I would like to have 1 button on a form that would run 2 append queries I created. They are bot going to the same table. Is there a way to do that?

Thanks

Joe
 
doesn't matter which tables they go. You can run those queries by using this in the command button's click event:

Code:
With CurrentDb
    .Execute "YourQueryNameHere"
    .Execute "YourQuery2NameHere"
End With
 
Hi Bob,

Is the difference between your code and the DoCmd.OpenQuery only that the .Execute suppresses the query default warnings (for action queries) or there are other advantages as well?

Thank You
 
Hi Bob,

Is the difference between your code and the DoCmd.OpenQuery only that the .Execute suppresses the query default warnings (for action queries) or there are other advantages as well?

Thank You

The main benefit that I know of is to keep from getting the warning messages and not having to mess with turning them off/back on again.
 

Users who are viewing this thread

Back
Top Bottom