Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calculating elapsed days while excluding work and holidays

Status
Not open for further replies.

leeroi

Technical User
Jun 5, 2000
122
0
0
US
I want to track the number of work days that an employee takes to complete a report. For each report, there are at least 3 dates to track. First, the clincian's date of dictation, second the date the secretary notifies the clinician the report is typed, and third, the date that the clinician proofs the report.

I know I need some kind of function, and a table which lists the dates of specific holidays to exclude. I know that I somehow need to make these work with a query so that when I compute date differences in days, weekends and holidays are excluded.

Unfortunately, that's about the limit of my knowledge. Could anyone give me a hand with this? A sample function and how to apply it to the query would be very helpful.

Lee
 
This explained in the Faq for this Module with sample code
Section 10 a
I havent tried this faq but all the ones I have have worked excellently
 
Found this function while looking thru A2K help... Rather than reinvent things I thought I might give it a try...

however, altho it works great in Excel I haven't gotten it to work in Access yet, referencing msowcf.dll isn't helping ... i'll keep you posted
============================================================
Cut & past from help
============================================================
NETWORKDAYS
Returns the number of whole working days between a start and end date, excluding weekends and any identified holidays.

If this function returns the #NAME? error value, you may need to install msowcf.dll.

Syntax

NETWORKDAYS(start_date,end_date,holidays)

Start_date is a date that represents the start date.

End_date is a date that represents the end date.

 
See faq181-261 it was written for Ms. Access '97.


MichaelRed
redmsp@erols.com

There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top