Retrive all unmatched records

P

Peter

Hi,

We are developing a Property inspection query. We would
like to retrive all Property with Inspection date is NULL.

Property and Inspection are two different tables. I know
how to extract all information about property that has
been inspected (INNER JOIN between the two tables).
However, how can we get those property information with no
entry in the Inspection Table ?

Thanks
 
R

Rob Parker

You need a Left Join, and a criterion of Is Null for a field from the
Inspection table.

In the QBE window, right-click on the join between the two tables, and
select the "All records from Properties and only those records from
Inspections where the joined fields are equal". Include a field from the
Inspection table (InspectionDate), and enter Is Null in the Criteria line
for that field.

HTH,

Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top