PC Review


Reply
Thread Tools Rate Thread

Macro to copy linked table and paste as local table

 
 
=?Utf-8?B?Q2xpdmU=?=
Guest
Posts: n/a
 
      7th Sep 2007
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.

 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      7th Sep 2007
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.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Clive" <(E-Mail Removed)> wrote in message
news:E4571994-012E-41E2-ABF5-(E-Mail Removed)...
> 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.
>


 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q2xpdmU=?=
Guest
Posts: n/a
 
      7th Sep 2007
Thank you very much. that is most helpful.



"Allen Browne" wrote:

> 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.
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "Clive" <(E-Mail Removed)> wrote in message
> news:E4571994-012E-41E2-ABF5-(E-Mail Removed)...
> > 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.
> >

>
>

 
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
Access 2007 - Copy linked table to a local table or have linked tableas read-only Stuart Microsoft Access 0 26th May 2012 10:28 PM
Copy Linked Table to Local Table Brad Hall Microsoft Access VBA Modules 3 7th Nov 2008 02:19 AM
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
How do I get copy/paste to copy/paste text and not the whole page =?Utf-8?B?Q2Fyb2wgSi4=?= Microsoft Word Document Management 1 6th May 2005 09:03 PM
Copy and Paste macro needs to paste to a changing cell reference =?Utf-8?B?bG91bG91?= Microsoft Excel Programming 0 24th Feb 2005 11:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:55 AM.