Results 1 to 2 of 2
  1. #1
    crhaines94 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    13

    Absent Query

    Hi Everyone,

    I want to create a query that shows if an employee is absent or not. I have a date table that has everyday in it for tor the next 3 years. There is another table that has employee information (Name, employee ID, etc), then there is another table that hosts employee Logins (employee ID, time in, time out, date, etc).

    I need to create a query that checks for every employee in the employeelist for everyday in the datetable, to see if they logged in or not (in the employeelogin table). If that employee did not login that day, there would be a field that would have a status of "Absent".

    Ideas? It sounds simple, but i cant figure it out.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,816
    Need a dataset of all possible employee/date pairs. This can be done with a Cartesian query - query with no JOIN clause. Every record of each table will associate with each record of other table.

    SELECT Employees.*, Dates.* FROM Employees, Dates;

    Now do a compound join between that query and the log table.
    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.

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

Similar Threads

  1. need present and absent student.
    By shah1419 in forum Queries
    Replies: 3
    Last Post: 10-24-2017, 07:32 PM
  2. Prevent Warning of Absent Images
    By Nip351 in forum Reports
    Replies: 3
    Last Post: 06-22-2017, 03:27 PM
  3. Replies: 1
    Last Post: 03-09-2015, 12:07 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