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
324 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
Comment Utility
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:LukeChung-FMS
LukeChung-FMS earned 200 total points
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
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…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

771 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

10 Experts available now in Live!

Get 1:1 Help Now