Results 1 to 2 of 2
  1. #1
    bluke is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    1

    Question Calculating future Hours for Employees


    Hi,

    I'm new to this forum and to Access and need assistance writing a query that will give me employee total work hours for a range of future dates. I have an existing table with employee name, day of week, and total number of hours working for that day, in most cases 8. I need to be able to query this table for a date range so the result comes out as - between date x and date y (in the future) employee A is scheduled to work total of X hours. Is this possible? If so, how?

    Thanks in advance

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Maybe. Calculate the number of work days between the two dates and multiply by hours per day. The calculation of work days will probably need a custom function so that weekends and holidays can be excluded. Calculating work days is a common topic and has been discussed in previous threads and many code samples can be found on web.

    Here is one http://www.jpsoftwaretech.com/calcul...lidays-in-vba/

    It hard codes the holiday dates. Alternative is a table of holiday dates.
    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: 8
    Last Post: 03-01-2013, 11:55 AM
  2. Tracking education hours for employees
    By sephiroth2906 in forum Access
    Replies: 3
    Last Post: 11-15-2011, 03:22 PM
  3. Calculating Net Pay for Salary & Hourly Employees
    By brbrooks73 in forum Queries
    Replies: 2
    Last Post: 08-16-2011, 12:15 PM
  4. Code for calculating employees overtime pay
    By Nixx1401 in forum Access
    Replies: 17
    Last Post: 05-05-2011, 05:13 PM
  5. Replies: 8
    Last Post: 05-24-2010, 04:24 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