Copy Linked Table to Local Table

B

Brad Hall

I would like to copy a table linked to another database and make a local
copy. In my tests, a local copy then local query is faster than a linked
query that uses most of the records. Any Help would be appreciated
 
F

fredg

I would like to copy a table linked to another database and make a local
copy. In my tests, a local copy then local query is faster than a linked
query that uses most of the records. Any Help would be appreciated

On your Main Database folder, delete the table. NOTE: You are NOT
really deleting the table, just the link to it.
Then click on File + Get External Data + Import.
Navigate to the other database, and select the table. Click on Options
and select Definition and Data.
Click OK.
 
B

Brian

1. Delete the link - something like this (or just leave it there and use a
different name in step #2 below):

Dim db As DAO.Database
Set db = CurrentDb
db.TableDefs.Delete "MyLinkedTable"

2. Import the table - something like this:

DoCmd.TransferDatabase acImport, "Microsoft Access", _
"C:\MyOtherDB.mdb", acTable, "MyTableThere", _
"MyTableHere"
 

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