Query All Employees Who Have Not Logged In for the Day
Results 1 to 2 of 2

Thread: Query All Employees Who Have Not Logged In for the Day
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Jul 2018
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Query All Employees Who Have Not Logged In for the Day

    Greetings!

    I have produced a query that shows only the names of employees who have not logged in. But, I want the query to also only give me the employees who have not logged in for the current date = Date().

    How do I incorporate that into this query I have already produced :

    SELECT *
    FROM Emp_tbl AS e
    WHERE NOT EXISTS
    (select null from tblEmpLogin t where t.pf_id = e.pf_id);

    The date field 'DTE' is in table tblLogInOut.

    Thank you for your help!

  2. #2
    MrExcel MVP
    Junior Admin
    Joe4's Avatar
    Join Date
    Aug 2002
    Posts
    50,010
    Post Thanks / Like
    Mentioned
    52 Post(s)
    Tagged
    11 Thread(s)

    Default Re: Query All Employees Who Have Not Logged In for the Day

    Your query references table "Emp_tbl" and "tblEmpLogin", but the you say that the date field is in the "tblLogInOut" table.

    I think you need to tell us the structure and relationships of all three of these tables (how they relate to each other).
    And perhaps post some sample data. I am most interested as to what the data looks like in the table that shows whether or not they have logged in.
    TIPS FOR FINDING EXCEL SOLUTIONS
    1. Use the built-in Help that comes with Excel/Access
    2. Use the Search functionality on this board
    3. A lot of VBA code can be acquired by using the Macro Recorder.

    "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life!"

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •