ACC2002: Error Inserting Row into Multi-Table View or Function (295250)
The information in this article applies to:
This article was previously published under Q295250 Moderate: Requires basic macro, coding, and interoperability
skills.
This article applies only to a Microsoft Access project (.adp).
SYMPTOMS When you insert a row into a multi-table view or function
in an Access project (.adp), you receive the following error message:
You can't update the record because another user or
application deleted it or changed the value of its primary key.
CAUSE There is no defined relationship between the tables.
RESOLUTION Create a relationship between the two tables. To create a
relationship, follow these steps:
- Open the primary table in Design view.
- On the View menu, click Relationships.
- Click New.
- Select the name of the primary table in the Primary Key Table box.
- Select the name of the related table in the Foreign Key Table box.
- Under the Primary Key Table box, select the field(s) that make up the primary key in the
primary table.
- Under the Foreign Key Table box, select the field(s) that make up the foreign key in the
related table.
- On the File menu, click Save.
- Click Yes when Microsoft Access prompts you to continue.
NOTE: You will receive an error during the save operation if data in
the related table violates referential integrity (one or more values in the
foreign key field do not exist in the primary key field of the primary table).
If you want to avoid this, you can click to clear the Check existing
data on creation check box before saving.
- Quit and then restart Microsoft Access.
STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 11/5/2003 |
---|
Keywords: | kbbug kberrmsg kbnofix KB295250 |
---|
|