Results 1 to 4 of 4
  1. #1
    Rajeshsms is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Sep 2014
    Posts
    3

    Help in calculating total time worked

    Dear All,



    I have a table in access that has 1 ) persons ID and ) log date/time 3) direction in or out
    I need to calculate the amount of time spent by the person in the office. e.g User with ID 1 will come in at 8 in the morning and go out after an hour
    then come in again and go out. Till he leaves out for the day. I need to find the first time he came in and last time he went out and find the difference
    for the hours he worked

    The data is in Devicelogs table


    Many thanks

    Attached Files Attached Files

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    query the table and add extra calculated column to calc the hours in the IN vs OUT time / person / day
    datediff("h",date1, date2)

    sum the hours.

  3. #3
    Rajeshsms is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Sep 2014
    Posts
    3
    Many thanks for the answer but I am still not sure. I just need to calculate the first in and the last out and difference between those two times

    Regards

  4. #4
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Do not if below will give you some guidelines. All the same check out :

    https://www.accessforums.net/queries...yee-25759.html

    Thanks

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

Similar Threads

  1. Replies: 4
    Last Post: 07-11-2014, 07:33 AM
  2. Calculating the total number
    By billylids5 in forum Forms
    Replies: 1
    Last Post: 04-27-2014, 04:06 AM
  3. Calculating Last Day Worked
    By djclntn in forum Queries
    Replies: 7
    Last Post: 12-01-2013, 04:37 PM
  4. Replies: 8
    Last Post: 08-24-2012, 01:54 AM
  5. Need help with calculating Time total
    By Monoceros in forum Reports
    Replies: 1
    Last Post: 04-20-2009, 12: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