Results 1 to 5 of 5
  1. #1
    chriswrcg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2018
    Location
    Usa
    Posts
    142

    handling times between dates

    I have a database that requires me to enter new records for the various shifts that work in my warehouse. I have to enter a persons work time ( clock in and clock out times) as well as individual tasks start and stop times. This is incredibly easy for all shift other than the second since they usually start their shift on one day and end on another ( clock in at 1:30 pm and clock out at 12:30 am the next day).



    In order for me to get the total minutes worked I have to enter the date and time so access understands the spacial time reference I am getting at.( clock in at 1:30 on 4/10/2019 and clock out at 12:30 am on 4/11/2019) This also effects the last task of the day because it usually has the same issue. (start the task on one day and Finnish on the next. )

    Anyone have any tips to handle this other than having to type the date and time since this can get tedious and since it can take twice as long to enter second shift data other than any other shift.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Date/Time should be in 1 field. THAT is how it can calculate elapsed:
    [clockIn] = 1/1/19 11 pm
    [clockOut] = 1/2/19 7 am

    time worked = DateDiff("h", [clockIn], [clockOut])

  3. #3
    chriswrcg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2018
    Location
    Usa
    Posts
    142
    thats how i do it now. looking for a trick to speed things up if it exist. If not oh well.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    nice little trick pbaldy!

    I gather the main complaint is all the date/time typing. There are quite a few time-clock type examples for Access.
    Try searching on "ms access time clock application" and even use the "images" option - assuming you use Google. Maybe something out there will take away some of the drudgery.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Method for handling data across several dates
    By Grady in forum Database Design
    Replies: 2
    Last Post: 07-21-2016, 10:27 AM
  2. Handling nonspecific dates
    By Western_Neil in forum Database Design
    Replies: 5
    Last Post: 07-10-2016, 06:00 PM
  3. Difference between Dates/Times
    By dr4ke in forum Queries
    Replies: 3
    Last Post: 06-26-2012, 06:30 AM
  4. Replies: 3
    Last Post: 02-12-2012, 06:05 PM
  5. Handling dates in queries
    By mrk68 in forum Access
    Replies: 4
    Last Post: 03-23-2009, 06:35 AM

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