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
325 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
2 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

910 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now