Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228

    Find on;y records without a match

    This is a problem I have asked about before but I think I wasn't approaching it correctly.



    Now in access I have a table relating to information on a typical "timesheet". The only concern I have is the "weekending" date field.

    Every week we should get information from the engineers to be put into this table. The corresponding date is also stored.

    I want a want to see who has not submitted their timesheet.

    every member of staff should submit one.

    That's the problem......

    my idea.. which im having trouble implementing. Would be a combo box where the user can select a date and the query would find all names that do not have a timesheet with this date.


    Any help appreciated.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    you want an OUTER join.
    make Q1 to pull all persons timesheet for that 1 week.
    now make Q2, add in Q1 and the table of all persons, tEmployees.
    join the 2 queries on person#.
    dbl-click the join
    set the property to ALL records from table of persons, SOME records from Q1
    bring down the person Name from BOTH queries, Q1.name, tEmployees.Name
    under Q1.name, set criteria to NULL
    run query.

    the null records are what is missing.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    As ranman says
    If you have
    a) a list of employees, and
    b) a list of employee time sheets for this week

    Click image for larger version. 

Name:	EmployeesAndTimesheetsLeftJoin.png 
Views:	10 
Size:	13.8 KB 
ID:	27645

  4. #4
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    I even have a diagram haha! I was looking at similar things but didn't have any success. Hopefully I will get some time to day to implement this. Failing that ill update tomorrow.

    Thank you for the answers.

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

Similar Threads

  1. Find Match by Date Range
    By soldat452002 in forum Queries
    Replies: 2
    Last Post: 07-31-2016, 03:54 PM
  2. If no match after find first record, do stuff
    By boboivan in forum Access
    Replies: 3
    Last Post: 02-26-2016, 04:07 AM
  3. Replies: 2
    Last Post: 07-27-2015, 06:53 AM
  4. Replies: 4
    Last Post: 07-24-2015, 02:11 AM
  5. Replies: 11
    Last Post: 02-06-2014, 10:05 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