PC Review


Reply
Thread Tools Rate Thread

Copy Linked Table to Local Table

 
 
Brad Hall
Guest
Posts: n/a
 
      5th Nov 2008
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
 
Reply With Quote
 
 
 
 
fredg
Guest
Posts: n/a
 
      5th Nov 2008
On Wed, 5 Nov 2008 10:50:01 -0800, Brad Hall wrote:

> 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.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 
Reply With Quote
 
Brad Hall
Guest
Posts: n/a
 
      5th Nov 2008
Sorry, I didn't make myself clear. I would like to do this programmatically.

"fredg" wrote:

> On Wed, 5 Nov 2008 10:50:01 -0800, Brad Hall wrote:
>
> > 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.
> --
> Fred
> Please respond only to this newsgroup.
> I do not reply to personal e-mail
>

 
Reply With Quote
 
Brian
Guest
Posts: n/a
 
      7th Nov 2008
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"

"Brad Hall" wrote:

> Sorry, I didn't make myself clear. I would like to do this programmatically.
>
> "fredg" wrote:
>
> > On Wed, 5 Nov 2008 10:50:01 -0800, Brad Hall wrote:
> >
> > > 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.
> > --
> > Fred
> > Please respond only to this newsgroup.
> > I do not reply to personal e-mail
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB Code to copy linked table to local JD Microsoft Access VBA Modules 4 31st Mar 2010 08:33 PM
How create a local copy of a linked table record? mscertified Microsoft Access Form Coding 1 22nd Apr 2008 02:18 AM
Macro to copy linked table and paste as local table =?Utf-8?B?Q2xpdmU=?= Microsoft Access 2 7th Sep 2007 10:56 AM
Create local copy of Linked Table =?Utf-8?B?c3RpY2thbmRyb2Nr?= Microsoft Access External Data 2 20th Jun 2006 10:59 PM
How to copy linked table to a different database as a local table? Robin Microsoft Access VBA Modules 4 7th Oct 2005 08:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:25 AM.