ACC: Two Tables Automatically Joined in Query (113885)
The information in this article applies to:
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q113885
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
If you create a query based on two or more tables that have matching field
names with matching data types, and one of the tables has a primary key
defined, Microsoft Access will automatically join the tables on the
matching field names.
RESOLUTION
Create the table relationships that you want in the Relationships window
before you create new queries. If you do not create the relationships that
you want first, you will have to delete the automatic join line in the
query.
In Microsoft Access 7.0 and 97, you may disable AutoJoin entirely by
clicking Options on the Tools menu, clicking the Tables/Queries tab, and
clearing the check box labeled "Enable AutoJoin."
STATUS
This behavior is by design.
REFERENCES
For more information about joining tables in queries with join lines,
search for "join," and then "join tables" or ask the Microsoft Access 97
Office Assistant.
Modification Type: | Major | Last Reviewed: | 5/6/2003 |
---|
Keywords: | kbprb KB113885 |
---|
|