Results 1 to 4 of 4
  1. #1
    ccordner is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    65

    Query Criteria

    Sorry if this is a silly question.

    I have two tables - tblVolunteers and tblContactMade.

    tblContactMade lists each instance where I have made contact with a volunteer. I have set up a query, with fields from tblVolunteer and the ID field from tblContactMade.



    How do I filter out just the records from tblVolunteers where there are no corresponding entries in tblContactMade?

    Thanks
    Chris

  2. #2
    Rawb is offline Expert
    Windows XP Access 2000
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    Just use a standard Inner Join.

    You can do this in the Query Builder by dragging the Field from tblVolunteers onto the Field you want to link it to in tblContactMade.

  3. #3
    ccordner is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    65
    Quote Originally Posted by Rawb View Post
    Just use a standard Inner Join.

    You can do this in the Query Builder by dragging the Field from tblVolunteers onto the Field you want to link it to in tblContactMade.
    I'm not sure I understand.

    In design view, I showed both tables. I linked the two, but the only options I could find are "All records in tbl Volunteers and only records from tblContactMade that match" or "All records from tblContactMade and only records from tblVolunteers that match".

    What I actually want is "only records from tblVolunteers for which there are no matching records in tblContactMade".

    I tried setting the criteria field for the [ID] in tblContactMade to ="", but that didn't work. I also tried setting Count([tblContactMade]![ID])=0, but that didn't work either.

    Chris

  4. #4
    Rawb is offline Expert
    Windows XP Access 2000
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    Sorry, I misunderstood what you wanted.

    In that case, you will want to choose the option that says "All records in tblVolunteers and only records from tblContactMade that match." Then, you add a criteria for [tblContactMade].[ID] where it Is Null.

    Like So!

    Click image for larger version. 

Name:	ccordner02.jpg 
Views:	2 
Size:	40.6 KB 
ID:	8504 Click image for larger version. 

Name:	ccordner01.jpg 
Views:	2 
Size:	38.6 KB 
ID:	8505

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Help with query criteria
    By batowl in forum Queries
    Replies: 1
    Last Post: 06-26-2012, 10:37 PM
  2. Replies: 1
    Last Post: 07-13-2011, 11:00 AM
  3. Query Criteria
    By BorisGomel in forum Queries
    Replies: 3
    Last Post: 06-08-2011, 08:35 AM
  4. Query Criteria
    By Alex Motilal in forum Queries
    Replies: 2
    Last Post: 10-06-2010, 08:20 AM
  5. Query Criteria
    By combine21 in forum Queries
    Replies: 12
    Last Post: 09-08-2010, 01:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums