ACC2: Adding Records to AutoLookup Form Generates ErrorsLast reviewed: May 28, 1997Article ID: Q116062 |
The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills. When you are adding a record to a form based on an AutoLookup query, one of the following messages is generated 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 outer join -or- Field can't be edited CAUSEYou have one or more default values set on form control(s) bound to the one-side table in your AutoLookup query.
RESOLUTIONMake sure that the form control(s) on the "one" side have no default values set.
MORE INFORMATIONWhen you enter a value in the foreign key field in 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 has a default value, Microsoft Access assumes 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:
Current field must match join key "?" on 'one' side of outer joinIf there are default values for any of the many-side fields, or if you have not entered any value in any field from the many-side table, you will receive the following warning message in the status bar after you enter a value in the foreign key field:
To make changes to this field, first save the record Steps to Reproduce Behavior
REFERENCESFor more information about the AutoLookup feature, search for "AutoLookup," and then "Looking Up Information Automatically (AutoLookup)" using the Microsoft Access Help menu.
|
Additional query words: rowfixup defaultvalue
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |