I am trying to create a query that says if it's in
database a, but not in database b, show me the results.
I've been struggling with this for a couple of days now,
any ideas?
Rob
I presume you mean TableA and TableB? A "database" in Access jargon is
the .mdb file, containing multiple tables/forms/reports etc.
There is an Unmatched Query Wizard that will do this for you, or you
can write your own "frustrated outer join" query:
1. Add TableA and TableB to the query grid
2. Join them by the appropriate linking field (I don't know what that
is in your table but typically it would be the Primary Key of TableA
and a matching Foreign Key in TableB)
3. Select the Join line by clicking on it, and choose Option 2 (or 3)
- "Show all records in TableA and matching records in TableB"
4. Select any fields you want to see from TableA, and *only* the
joining field from TableB
5. Put
IS NULL
on the criteria line under the TableB joining field
6. Open the query.