ACC2002: How to Use the Find Unmatched Query Wizard (319017)
The information in this article applies to:
This article was previously published under Q319017 Novice: Requires knowledge of the user interface on single-user computers.
This article applies only to a Microsoft Access database (.mdb).
For a Microsoft Access 2000 version of this article, see 322798.
For a Microsoft Access 97 version of this article, see 322799.
SUMMARY
You can use the Find Unmatched Query Wizard to create a select query that finds records in one table that do not have related records in another table.
For example, in the Northwind.mdb sample database, you can find customers who do not have orders. The query compares the Customer ID field in the Customers table with the Customer ID field in the Orders table. The query finds all instances of Customer ID entries that appear in the Customers table but that do not appear in the Orders table.
If the Enforce Referential Integrity feature has been selected, a Customer ID cannot exist in the Orders table (on the "many" side of the relationship) unless it exists in the Customers table (on the "one" side of the relationship). A company that has not placed an order can be listed as a customer, but each order must have a customer.
REFERENCESFor additional information about how to enforce referential integrity, click the article number below
to view the article in the Microsoft Knowledge Base:
304466 ACC2002: Defining Relationships Between Tables in a Microsoft Access Database
Modification Type: | Minor | Last Reviewed: | 1/7/2006 |
---|
Keywords: | kbhowto KB319017 |
---|
|