Results 1 to 5 of 5
  1. #1
    shod90 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2016
    Posts
    134

    Find missing dates in table.


    Dear Gents,
    I have a timesheet project done with access and the accountant need to know which specific days the employee didn't create a record .

    could it be possible ?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    This question has been asked often. Here is one similar discussion https://bytes.com/topic/access/answe...ng-dates-query

    For a query approach, you would need a dataset of all possible employee/date pairs in order to determine what is missing in the time data. This is called a 'Find Unmatched' query. Access has a query wizard for that.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    shod90 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2016
    Posts
    134
    I already follow up the link you have provided and i reached to a very good result but only remaining one thing.
    Click image for larger version. 

Name:	111.png 
Views:	11 
Size:	15.0 KB 
ID:	49536

    That's what i received .. But i need to only show the dates which have null value in Dates field .. I mean
    6/1/2023
    7/1/2023
    11/1/2023
    and so on.

    and this is the sql view
    Code:
    SELECT Dates.TDates, Query2.DatesFROM Dates LEFT JOIN Query2 ON Dates.TDates = Query2.Dates
    WHERE (((Dates.TDates) Between #1/1/2023# And #1/31/2023#));

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Expand the WHERE clause: AND Dates.Dates IS NULL

    Your query lacks a space in front of FROM. Must have been just a posting error. The forum tends to combine first two lines of code. I always have to fix.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    shod90 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2016
    Posts
    134
    I found the solution , Just i add is null in criteria and now i shows the data what i need , Thanks for your support

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

Similar Threads

  1. Replies: 1
    Last Post: 12-28-2017, 02:11 AM
  2. Missing dates
    By valglad in forum Queries
    Replies: 5
    Last Post: 03-22-2017, 05:29 PM
  3. Replies: 2
    Last Post: 10-27-2015, 09:12 AM
  4. Need to query for missing dates
    By Jaron in forum Queries
    Replies: 5
    Last Post: 09-11-2013, 11:58 AM
  5. Appending Missing Dates
    By Jerseynjphillypa in forum Queries
    Replies: 3
    Last Post: 05-25-2012, 09:44 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