ACC2000: How to Use the Find Unmatched Query Wizard (322798)
The information in this article applies to:
This article was previously published under Q322798 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 2002 version of this article, see 319017.
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:
304467 ACC2000: Defining Relationships Between Tables in a Microsoft Access Database
Modification Type: | Major | Last Reviewed: | 6/30/2004 |
---|
Keywords: | kbhowto KB322798 |
---|
|