Results 1 to 2 of 2
  1. #1
    detaylor1242 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Feb 2013
    Location
    Lacey, WA
    Posts
    19

    Breaking out the time from date/time


    I need to create a time tracker for work orders submitted by clients. I have the clients table built and working as well as the work order table. I am working on the "time tracker" where I need to be able to input a date that I am working on and the time started and time ended. Then calculate the total time spent on that date. I can't figure out how to get the time stamps working and then how to calculate the time.

    Once the time is calculated I want to produce a report at the end of the month that will show by client the total time spent on each work order as well as the work order and individual time stamps for each time that I worked on the WO.

  2. #2
    Rod is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Jun 2011
    Location
    Metro Manila, Philippines
    Posts
    679
    Date/time is held as a number, the integer part is a relative day number and the decimal part is the time of day. So, making sure the variable is a proper date type:

    dteMyDateTime - Int(dteMyDateTime)

    will give you the decimal part (i.e. the time). If you wish to display this (form or report) then use the Format function.

    Hope this helps.

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

Similar Threads

  1. Replies: 42
    Last Post: 03-01-2013, 06:58 AM
  2. Replies: 1
    Last Post: 02-28-2012, 09:16 PM
  3. Replies: 7
    Last Post: 08-04-2011, 07:49 PM
  4. Replies: 12
    Last Post: 02-22-2011, 03:39 PM
  5. Replies: 6
    Last Post: 01-04-2011, 05:43 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