Article ID: 208564 - Last Review: June 24, 2004 - Revision: 1.0 ACC2000: Errors Adding Record to AutoLookup Form
This article was previously published under Q208564 Moderate: Requires basic macro, coding, and interoperability skills.
On This PageSYMPTOMS
When you are adding a record through a form that is based on an AutoLookup
query, you may receive one of the following error messages when you try to
enter anything in the foreign key field:
To make changes to this field, first save the record.
-or-
The current field must match join key '?' in the table that servers as the 'one' side of one-to-many relationship. Enter a record in the 'one' side table with the desired key value, and then make the entry with the desired join key in the 'many-only' table.
-or-
Field can't be edited.
CAUSE
Default values are set on a control or controls bound to the "one" side
table of an AutoLookup query, which acts as the record source for the form.
RESOLUTION
Make sure that the control or controls that are bound to the "one" side of
the query do not have any default values set on the form.
MORE INFORMATION
When you enter a value in the foreign key field of an AutoLookup query,
fields from the "one" side table should update automatically with related
information. However, if you are adding a new record and one or more fields
from the "one" side have a default value, Microsoft Access assumes that you
are trying to add a record to the "one" side as well as to the "many" side.
If there are no default values for any of the "many" side fields, when you enter a value in the foreign key field after making an entry in another field from the "many" side table, you may receive the following error message:
<field name> field must match join key '?' on 'one' side of one-to-many relationship because it has been updated.
To make changes to this field, first save the record.
Steps to Reproduce Behavior
REFERENCESFor more information about AutoLookup queries, click Microsoft Access Help on the
Help menu, type AutoLookup query in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
