How do I account for holidays when using DiffDate?

Vulfson

Registered User.
Local time
Today, 01:30
Joined
Dec 7, 2004
Messages
11
Hello everyone.

I am attempting to calculate the number of working days over a period of time for my company. I found a neat tutorial to write a public function that calculates the number of days between two dates that aren't Saturday or Sunday.

http://www.databasejournal.com/features/msaccess/print.php/1552691

However, my company gives its employees many days off that aren't Saturday or Sunday. Most of the employees get every other Friday off, as well as pretty much every federal holiday.

What I need is a way to modify that function to also ignore "holidays." At the end, the article mentions using a query extract from a table containing all the holidays for the year, to increase accuracy.

How do I do this? I already have a table, I just need to know what to add to the function to make it access the table when determining dates.

Thanks in advance.
 
That's Great! Solved all my problems, especially when I enable the DAO software. Thanks a bundle!
 

Users who are viewing this thread

Back
Top Bottom