Append query on click (1 Viewer)

marleyuk

Registered User.
Local time
Today, 05:19
Joined
Feb 8, 2006
Messages
54
Hi,

I would like to make an append query to piece together multiple tables into a holding table, once the command button is clicked.

Can anyone advice a) how to make an append query in vba, b) Does anyone know how to call an append query on click of a command button?

Thanks,
Ian.
 

namliam

The Mailman - AWF VIP
Local time
Today, 06:19
Joined
Aug 11, 2003
Messages
11,695
Create an append query in the designer, change the view to SQL and you know how to write it :)

Currentdb.Execute "Append query here"

or you can use docmd.runsql while (de)activating setwarnings around it unless you want to see the "About to append x records bla bla" access message.
 

Users who are viewing this thread

Top Bottom