Results 1 to 4 of 4
  1. #1
    ultra5219 is offline Advanced Beginner
    Windows 8 Access 2007
    Join Date
    Feb 2013
    Posts
    45

    calculation hours Question...

    hi guys
    i got question regarding calculation time. is it my table based on screenshot, can able to calculate hours of employee? from start time to end time.
    for example: from 08:00:00AM - 9:00:00AM... Total hours: 1 hour

    is it query method can do hours calculation?
    let me know how to do in query or other method?

    Thanks again...
    Attachment 11999

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Use DateDiff function:

    DateDiff("h",[end_time],[star_time])

    Will any slots cross midnight?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ultra5219 is offline Advanced Beginner
    Windows 8 Access 2007
    Join Date
    Feb 2013
    Posts
    45
    Nope.. No slots for midnight.. Only until 4:30pm... Is that method using query?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    You can use DateDiff in query, textbox, or VBA, maybe even somehow in macro (I don't use macros).
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 1
    Last Post: 08-08-2012, 01:42 PM
  2. Replies: 4
    Last Post: 08-06-2012, 10:25 AM
  3. Calculation and Autofill Question
    By SMC in forum Forms
    Replies: 4
    Last Post: 06-20-2012, 11:03 AM
  4. Calculation for time x hours in table
    By hellojosie in forum Access
    Replies: 6
    Last Post: 11-20-2011, 01:54 AM
  5. Question about creating a date calculation tool
    By bazillion in forum Programming
    Replies: 0
    Last Post: 01-25-2008, 12:08 PM

Tags for this Thread

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