Results 1 to 4 of 4
  1. #1
    Arnau is offline Novice
    Windows 10 Access 2007
    Join Date
    Nov 2017
    Posts
    4

    Caregivers without clients


    I have a database used by an NGO where we have 1900 caregivers taking care of 5500 clients in Swaziland. Among others I have a table for the caregivers and another table for the clients and these two are connected in a query via the ID number of the caregivers. However, I realise that some client information have not been submitted and now it seems as if there are some caregivers without any clients. I would like to create a query consisting of the two tables but which indicate which of the caregivers DO NOT have any clients so that I can start working on obtaining the outstanding information. It might work if I test for caregiver IDs which exist in the caregiver table but do NOT exist in the caregiver/client query. But I cannot think of a way to do this. Any solutions will be highly appreciated.

  2. #2
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Create a query of who has clients then link this to a list of caregivers with a left or right join and pull off the null values. It can be done using a subquery

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    these two are connected in a query via the ID number of the caregivers.
    just make it a left join - in the query design window, double click on the join line and select the option 'select all records from caregivers....'

    when you run the query, filter or sort the results where the client is null to find the caregivers without clients. Or back in query design, put the criteria 'is null' for one of the client fields

  4. #4
    Arnau is offline Novice
    Windows 10 Access 2007
    Join Date
    Nov 2017
    Posts
    4
    Thanks for all your help. It is so simple once you know how to do it. I appreciate your input.

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

Similar Threads

  1. Sending Email to Multiple Clients
    By recyan in forum Database Design
    Replies: 8
    Last Post: 08-29-2014, 10:32 PM
  2. Replies: 9
    Last Post: 02-12-2013, 03:14 PM
  3. Limit clients to forms?
    By bgarey in forum SharePoint
    Replies: 0
    Last Post: 12-07-2011, 10:25 AM
  4. My form will not display all clients?????
    By Bautcalle in forum Forms
    Replies: 2
    Last Post: 08-31-2011, 11:35 AM
  5. Sum By Clients
    By BorisGomel in forum Programming
    Replies: 2
    Last Post: 05-02-2011, 09:26 AM

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