Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access General > Steele's Diff2D...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 92526 of 97661
Post > Topic >>

Steele's Diff2Dates Function without Holidays & Weekends

by =?Utf-8?B?TWF0dA==?= <Matt@[EMAIL PROTECTED] > Aug 7, 2008 at 12:32 PM

I am using the Diff2Dates code found on this webpage: 
<http://www.accessmvp.com/djsteele/Diff2Dates.html>
 to calculate the 
difference between two General Dates.
 
I am trying to find a way for the Diff2Dates function to exclude weekends 
and holidays in its calculation of the Difference between two General
Dates?
 
I have a table already created called tbl_Holidays with a HolidayDate
Field.
 
For Example:
A field in my re****t has the following control source: 
=Diff2Dates("dhn",[DateRcvd],[DateDue],True)
 
Where DateRcvd= 7/1/2008 08:48am and DateDue=7/15/2008 2:00pm
 
Right now the Diff2Dates function returns 14 days 5 hrs 12 mins, and it 
should return 9 days 5 hrs 12 mins (removing 4 days for the weekends and
one 
day for 7/4/2008).
 
How should the Diff2Dates code be altered in my module to do this 
calculation?  

Or if you have a better way to perform this calculation, please advise
(The 
output must be formatted “XX days XX hrs XX mins” 
Thanks!
 




 5 Posts in Topic:
Steele's Diff2Dates Function without Holidays & Weekends
=?Utf-8?B?TWF0dA==?= <  2008-08-07 12:32:00 
Re: Steele's Diff2Dates Function without Holidays & Weekends
"Arvin Meyer [MVP]&q  2008-08-07 15:48:41 
Re: Steele's Diff2Dates Function without Holidays & Weekends
=?Utf-8?B?TWF0dA==?= <  2008-08-07 13:14:01 
Re: Steele's Diff2Dates Function without Holidays & Weekends
"Arvin Meyer [MVP]&q  2008-08-07 20:25:30 
Re: Steele's Diff2Dates Function without Holidays & Weekends
=?Utf-8?B?TWF0dA==?= <  2008-08-08 08:51:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Dec 4 22:27:35 CST 2008.