- Make a new query.
- Add the table to the query two times.
- Create a join between FieldA of the original table and FieldB of the copy table.
- Change the join type to a left join to include all of the records in the original table.
- Add FieldA from the original table to the grid.
- Add FieldB from the copy table to the grid.
- Set criteria of FieldB to Is Null.
- Turn on Group By.
Here is the SQL:
Code:
SELECT tblMyTable.FieldA, tblMyTable_1.FieldB
FROM tblMyTable LEFT JOIN tblMyTable AS tblMyTable_1 ON tblMyTable.FieldA = tblMyTable_1.FieldB
GROUP BY tblMyTable.FieldA, tblMyTable_1.FieldB
HAVING (((tblMyTable_1.FieldB) Is Null));