ACC2000: Two Tables Automatically Joined in QueryID: Q208420
|
Moderate: Requires basic macro, coding, and interoperability skills.
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.
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, the automatic join line appears anyway.
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.
Table: Employees
-------------------------------
Field Name: ID
Data Type: AutoNumber
Indexed: Yes (No Duplicates)
Table Properties: Employees
-------------------------------
PrimaryKey: ID
Table: Customers
------------------------
Field Name: EmployeeID
Data Type: Number
Field Size: Long Integer
Indexed: No
Field Name: ID
Data Type: AutoNumber
Indexed: No
For more information about joining tables in queries with join lines, click Microsoft Access Help on the
Help menu, type "Join multiple tables and queries in a query" in the Office Assistant or the Answer Wizard,
and then click Search to view the topic.
For more information about automatic joins between tables, click Microsoft Access Help on the
Help menu, type "Enable or disable automatic joins between tables and queries in queries" in the Office Assistant or the Answer Wizard,
and then click Search to view the topic.
Additional query words: prb
Keywords : kbdta QryJoin
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 13, 1999