ACC2000: AutoLookup Query Not Performed with a One-to-One Relationship (208916)
The information in this article applies to:
This article was previously published under Q208916 Advanced: Requires expert coding, interoperability, and multiuser skills.
SYMPTOMS
Microsoft Access does not perform an AutoLookup query if it determines that the tables in the query have a one-to-one relationship.
CAUSE
Access determines the relationship between the tables in the query by examining the indexes on the join fields. Access ignores the relationship that you specify when it is determining whether to
perform an AutoLookup query. If your tables have one of the following
index combinations, Access does not perform an AutoLookup query:
Table 1 Table 2
---------------------- ----------------------
Primary Key Primary Key
Primary Key Indexed, No Duplicates
Indexed, No Duplicates Primary Key
RESOLUTION
To cause Access to perform an AutoLookup query, make sure the foreign key is neither indexed as the Primary Key nor as Indexed, No Duplicates. You may have to add a unique index to the foreign key on the "many" side of a relationship in order to maintain the integrity of the data.
REFERENCESFor more information about AutoLookup queries, click Microsoft Access Help on the
Help menu, type autolookup queries in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
Modification Type: | Minor | Last Reviewed: | 7/16/2004 |
---|
Keywords: | kbprb KB208916 |
---|
|