ACC2002: No Primary Key on a Copied or an Imported Table in an Access Project (302673)
The information in this article applies to:
This article was previously published under Q302673 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies only to a Microsoft Access project (.adp).
SYMPTOMS
In a Microsoft Access project (ADP), when you copy and paste or import a table that contains a primary key, no primary key is created on the resulting table. Therefore, the table is not updateable.
RESOLUTION
To work around this behavior, use one of the following methods.
Method 1
Manually re-create the primary key on the copied or imported table as follows:
- Open the table in which you want to create a primary key in Design view.
- Select the field on which you want to create the primary key.
- On the Edit menu, click Primary Key. After a moment, a key icon appears next to the row that you selected.
- On the File menu, click Save to save your changes.
Method 2
If your field names do not contain spaces, install the Microsoft SQL Server 2000 Desktop Engine (formerly MSDE, or Microsoft Data Engine) or SQL Server 2000 locally prior to copying the table.
If your field names contain spaces, please review the following article in the Microsoft Knowledge Base: 287446 ACC2002: Error Message: Start Position Is Before the Beginning or Past the End of the Rowset. No Rows Were Returned
For additional information about how to install Microsoft SQL Server 2000 Desktop Engine, click the article number below
to view the article in the Microsoft Knowledge Base:
290627 ACC2002: Microsoft SQL Server 2000 Desktop Engine Is Not Installed by Office XP Setup
Modification Type: | Major | Last Reviewed: | 10/20/2003 |
---|
Keywords: | kbprb KB302673 |
---|
|