Solved

I am developing an Access application using Access 2003. Is there a routine/function to calcuate the number of business days between 2 dates?

Posted on 2013-01-23
2
328 Views
Last Modified: 2013-01-24
I am developing an Access application using Access 2003.

In my application, I perform an age calculation based on the difference between 2 date fields.

Is there a routine/function to calcuate the number of business days between 2 dates?

I am trying to avoid counting weekends and holidays.
0
Comment
Question by:zimmer9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 300 total points
ID: 38811178
See these links:

http://support.microsoft.com/kb/210064

http://www.mvps.org/access/datetime/date0006.htm

You will need to have a Holiday table (among other things) related to your specific needs.

This might help you with the holiday part.  Also not the posts by cactus_data.

http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_23477598.html#a21767207

mx
0
 
LVL 10

Assisted Solution

by:Luke Chung
Luke Chung earned 200 total points
ID: 38814811
I remember doing this for an international bank that had to find dates when banking institutions were open on the same day in all the countries involved in a transaction. We had lists of holidays by country. Who knew that some countries are closed on every full moon?

We have a commercial VBA module source code library, Total
Visual SourceBook, that has as one of its classes, Business Day Math: http://www.fmsinc.com/microsoftaccess/modules/code/general_vba_vb6_date_and_time_cbusinessdatestable.htm

There are related Date/Time functions here which are free: http://www.fmsinc.com/Products/sourcebook/SampleCode.htm
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question