Copy a query in Access

G

Guest

I need to take an established "delete" and "append" query, copy it, and
change the table they effect. Please let me know how I can do this without
having to recreate the query's?

Thanks,
 
L

Lee E. Johnson

Open the query in SQL view, copy it.
Create new query and when the table selection box appears click cancel. Now
paste the old SQL into the new query.
Finally, substitute the old table names for the new ones.

Lee
 
J

Jack MacDonald

Design-view open the original query in the query grid. Right-click
each of the tables and choose "properties". Enter an alias. Change to
SQL view of the query. Select and copy all the SQL of the query.

Make a new query and view it in SQL view. Paste the SQL that was
copied from the original query. Look for the table names and
aliases... they will look like this:

FROM tblNumberOne AS Alias1, tblNumberTwo AS Alias2

Modify the table names leaving the Alias intact.



I need to take an established "delete" and "append" query, copy it, and
change the table they effect. Please let me know how I can do this without
having to recreate the query's?

Thanks,


**********************
(e-mail address removed)
remove uppercase letters for true email
http://www.geocities.com/jacksonmacd/ for info on MS Access security
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top