Microsoft KB Archive/199138

= ACC2000: Copying Linked Table Does Not Create Local Table =

Article ID: 199138

Article Last Modified on 7/14/2004

-

APPLIES TO


 * Microsoft Access 2000 Standard Edition

-



This article was previously published under Q199138



Novice: Requires knowledge of the user interface on single-user computers.

This article applies only to a Microsoft Access database (.mdb).



SYMPTOMS
When you copy and paste a linked table, the resulting new table is also a linked table. This occurs if you use the Copy and Paste commands on the Edit menu, the Save As command on the File menu, the TransferDatabase (with the option to import) macro action or Visual Basic method, or the CopyObject macro action or Visual Basic method.



CAUSE
When you copy a linked table, the normal behavior of Microsoft Access 2000 is to create the copy as a link. This is different behavior than in Access 7.0 and 2.0.



RESOLUTION
When you want to create a local copy of a linked table, use a make-table query based on the original linked table. To do so, follow these steps:  Start Microsoft Access and create a new blank database. On the File menu, point to Get External Data, and then click Link Tables. In the Link dialog box, locate and select the sample database Northwind.mdb, and then click Link. In the Link Tables dialog box, select the Customers table, and then click OK. This creates a linked table in your database called Customers.  Create the following new query in Design view based on the Customers table:   Query: MakeCustomers --  Type: Make Table Query

Field: Customers.* Table: Customers </li> On the Query menu, click Make-Table Query.</li> In the Make Table dialog box, type LocalCustomers in the Table Name box, and then click OK.</li> On the Query menu, click Run. Click Yes when prompted if you are sure you want to create a new table.</li> Close the query. You do not have to save the query.

Note that your database contains a new local table called LocalCustomers with the same data and structure as the linked Customers table.</li></ol>

<div class="moreinformation_section">

Steps to Reproduce Behavior

 * 1) Complete steps 1 through 4 in the "Resolution" section.
 * 2) Select the linked Customers table in the Database window.
 * 3) On the Edit menu, click Copy.
 * 4) On the Edit menu, click Paste.
 * 5) In the Paste Table As dialog box, type CopyOfCustomers in the Table Name box, and then click OK.

Note that the CopyOfCustomers table is also a linked table, which is linked to the same source table as the Customers table.

Additional query words: attach attached

Keywords: kbui kbprb KB199138

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.