
The Find Unmatched Query Wizard helps you find the records in one table that do not have matching records in another table. For example, you could find customers who have never booked a tour.
Some scenarios when you might need to create such a query include:
- To find customers who have never placed an order.
- To find products that have never been purchased.
- To find "orphan" records. If you haven't enforced referential integrity in your related tables, deleting a record in one table could leave one or more orphan records in a related table.
- Click the Create tab on the ribbon.
- Click the Query Wizard button.
The New Query dialog box appears, displaying different kinds of Query Wizards.
- Select Find Unmatched Query Wizard and click OK.
Now you need to choose the table or query whose values you want to display in the query. For example, if you ran a tour company and wanted to find customers without any tour packages, you would select the tblCustomers table.
- Select the table whose values you want to display and click Next.
Here you have to tell Access which table contains the related records. For example, you might select the tblCustomerTours table.
- Select the table that contains the related records and click Next.
Here you should specify the related field to join the records in the first table to the records in the second table. To do this, you need to select the same field in both lists.
- Select the same field in both tables, click the <=> button to join the two tables, and click Next.
Now you need to specify which fields you want to see in the query.
- Double-click any additional fields that you want to appear in the query results and click Next.
- Give your query a name and click Finish.
Access saves the query and displays its results.
FREE Quick Reference
Click to DownloadFree to distribute with our compliments; we hope you will consider our paid training.
- Select the table whose values you want to display and click Next.