A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date Difference



 
 
Thread Tools Display Modes
  #1  
Old January 20th, 2010, 03:24 PM posted to microsoft.public.access.reports
Steve
external usenet poster
 
Posts: 2,662
Default Date Difference

Hi,

I currently have following formula in my report.

=DateDiff("h",[Date/Time Request Created],[Date/Time Completed])

It is calculating the total hours between time request created vs. completed.

I want to be able to figure this same thing less weekends and holidays.
Does anyone have any idea on how to write that formula?

THANKS!
--
Steve
  #2  
Old January 20th, 2010, 03:43 PM posted to microsoft.public.access.reports
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Date Difference

Steve,
On my website (below) I have a sample file for V97 and V2003
called Calculate Number of Workdays.
That code could easily be converted to count the number of
weekend days, and holidays (from a holiday table) between your two
Date/Time values.

So, count the total hours between the two values, and subtract
NonWorkDays * 24
--
hth
Al Campagna
Microsoft Access MVP 2006-2009
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"Steve" wrote in message
...
Hi,

I currently have following formula in my report.

=DateDiff("h",[Date/Time Request Created],[Date/Time Completed])

It is calculating the total hours between time request created vs.
completed.

I want to be able to figure this same thing less weekends and holidays.
Does anyone have any idea on how to write that formula?

THANKS!
--
Steve



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:23 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.