Results 1 to 3 of 3
  1. #1
    Sumanth.Ganjam is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2013
    Posts
    9

    Calculaeate Difference Excluding Weekends

    Hi All,



    I am trying to Calculate the Date difference between "Material Submit Data" and "Current Date" excluding Weekends.

    Please help how to write the query for this one.

    Thanks
    Sumanth.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    I think you will need to create a function that can be called from a query to get the desired results.
    The attached db has a function in it called BusinessDays() that will return the number of Business Days between the two dates parsed to it.
    The function will exclude public holidays as well as weekends. If you want to include public holidays in your calculation you would need to amend the function.
    Post back if you need help with that.
    Attached Files Attached Files
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    Sumanth.Ganjam is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2013
    Posts
    9
    Thanks Bob for sharing this one.

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

Similar Threads

  1. Replies: 14
    Last Post: 09-11-2013, 01:10 PM
  2. Replies: 0
    Last Post: 04-01-2011, 09:12 AM
  3. DateDiff Excluding Weekends
    By cs93 in forum Programming
    Replies: 1
    Last Post: 03-25-2011, 04:09 PM
  4. Weekday excluding weekends
    By jd316632 in forum Queries
    Replies: 3
    Last Post: 05-24-2010, 02:01 PM
  5. Query DateDiff calculation excluding weekends
    By Masterfinn in forum Queries
    Replies: 3
    Last Post: 04-01-2010, 09:46 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