Results 1 to 5 of 5
  1. #1
    khughes46 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Grapevine, TX
    Posts
    231

    NetWorkDays in Access


    Does anyone have a NetWorkDays calculation for Access like the one used in Excel. I have seen one that uses just Date1 and Date2 but does not include a holiday exclusion. I need one that includes a holiday exclusion. I have this working in an Excel spreadsheet, but would like to include it in my DB and avoid extra export steps. Thanks for any help or suggestions.

  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,770
    This is a common topic. Search forum or web for many examples. Excluding holidays requires maintaining a Holidays table. Adapt code to incorporate a check against the Holidays table.
    https://www.accessforums.net/queries...ays-51341.html
    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
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,927
    you could modify the code you found to include an additional parameter for holiday dates.

    Alternatively, create a table to list the holidays and modify the function you found to count the number of holiday dates between date1 and date2 - something like dcount("*","tblHolidays","HolDate between date1 and date2")

    There are a number of possible other solutions which you will find in this and other forums which typically calculate the end date from a start date and allowing for weekends and holidays (or visa versa) which could also be adapted

  4. #4
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,927

  5. #5
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,927

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

Similar Threads

  1. Date return from NetworkDays and Holidays
    By Paintballlovr in forum Queries
    Replies: 9
    Last Post: 04-01-2015, 10:13 AM
  2. How do I use NETWORKDAYS (excel function) in Access?
    By khughes46 in forum Programming
    Replies: 2
    Last Post: 12-10-2014, 03:58 PM
  3. Calculating Networkdays
    By jsiketa in forum Queries
    Replies: 1
    Last Post: 06-10-2010, 06:05 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