ACC: Errors Adding Record to AutoLookup Form (95/97)ID: Q142842
|
Moderate: Requires basic macro, coding, and interoperability skills.
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-
Current field must match join key '?' on 'one' side of one-to-many relationship because it has been updated.
-or-
Field can't be edited
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.
Make sure that the control or controls that are bound to the "one" side of
the query do not have any default values set.
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 receive the error message:
<fieldname> 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
Query: AutoLookup
------------------
Type: Select Query
Field: OrderID
Table: Orders2
Sort: Ascending
Field: OrderDate
Table: Orders2
Field: CustomerID
Table: Orders2
Field: CompanyName
Table: Customers
Field: Address
Table: Customers
Field: City
Table: Customers
Field: Region
Table: Customers
Field: PostalCode
Table: Customers
Field: Country
Table: Customers
Field: Phone
Table: Customers
To make changes to this field, first save the record.
Current field must match join key '?' on 'one' side of one-to-many relationship because it has been updated.
For more information about the AutoLookup feature, search on the phrase "AutoLookup queries," and then view the "Create an AutoLookup query that automatically fills in data" or the "About AutoLookup queries that enter data automatically" topic, using the Microsoft Access 97 Help Index.
Keywords : kberrmsg QryHowto
Version : 7.0 97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 26, 1999