Results 1 to 2 of 2
  1. #1
    EileenAchil is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2016
    Posts
    3

    Query for Overtime Staff

    Hi, I have a staff daily report that auto download everyday. My problem is:
    1. Person A is working on 28/12/16 ( Shift C) from 8pm till 8.15am.
    2. I want to calculate how many times person A scan in and out his/her card.
    (using excel graph)
    3. The daily report time has been set to download record from 12am till 11.59pm. So means that in 29/12/16 report have a person A slide out record ( which is suppose to be in 28 /12/16 report). Then i come out with this solution:
    IIf ((Record.TransTime<#9:00:00#) And (calendar.Shift="night"), Record.TransDate (1-0-0), Record.TransDate) AS ActualDate


    But then, I realise what if person A is actually working overtime? Because i found out person A entry time is 7:45am (29/12)
    Anyone have any idea on how to solve this?
    I have 2 excel.
    1. Record ( staffno, TransTime, Transdate)
    2. Calendar
    Eg:
    27/12. Shift A. Day Shift B night
    28/12. Shift A. Day Shift C night
    29/12. Shift A. Day Shift C night
    29/12 is day shift for shift A , some of shift C is working on day shift (OT). Day shift start at 8.15am till 8pm and night shift start at 8pm till 8.15 am.
    Please help..... Thanks in advance

  2. #2
    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,726

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

Similar Threads

  1. Calculating overtime pay
    By mallard09 in forum Queries
    Replies: 3
    Last Post: 09-12-2014, 08:27 PM
  2. Replies: 7
    Last Post: 08-30-2013, 03:43 PM
  3. Staff Training Query
    By Jmeyering in forum Queries
    Replies: 1
    Last Post: 12-13-2012, 03:02 PM
  4. Overtime Tracking
    By cpl_usmc in forum Access
    Replies: 1
    Last Post: 06-07-2011, 03:59 AM
  5. Timesheet Query (Finding Reg Vs. Overtime Hours)
    By xAkademiks in forum Queries
    Replies: 1
    Last Post: 10-21-2010, 05:42 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