Macro to copy linked table and paste as local table

C

Clive

Hi,

Can anyone help me please?


i've got a table in my database that is linked to an external source through
an ODBC connection.

how do i create a macro to copy this table and paste as a local one.

i've managed to work out how to create a macro to copy the table but it just
leaves it as a linked table.
 
A

Allen Browne

1. Create a query that uses this table.
You can use the wildcard so it shows all fields.

2. In query design view, switch this to a Make Table query.
(Make Table on Query menu.)

3. Save the query.

4. Use the OpenQuery action in your macro to run the query.
 
C

Clive

Thank you very much. that is most helpful.



Allen Browne said:
1. Create a query that uses this table.
You can use the wildcard so it shows all fields.

2. In query design view, switch this to a Make Table query.
(Make Table on Query menu.)

3. Save the query.

4. Use the OpenQuery action in your macro to run the query.
 

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