I have a friend (Really!) who has asked me how to calsulate the number of workdays between two dates. I did not know offhand, but a brief review of the Access help files revealed this:
I experimented with this myself in queries and reports, and was not able to get it to work. Is anyone familiar with this function? On a search of the Forum, I found many references to code to solve the problem, but nothing useful referencing "Networkdays". Is this function functional?
My friend (I really do have a friend!!) is a bit newer to Access than I am, and I don't think she has ever tried to use VBA. Is there an easy way for her to calculate workdays? I feel a bit like the blind leading the blind here!
Thanks for anything you can offer!
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 <mkMSITStore:msowcrss.chm::/html/wxtbcNoATPFunctions.htm>.
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.
Holidays is an optional range of one or more days (holidays) to exclude from the working calendar.
I experimented with this myself in queries and reports, and was not able to get it to work. Is anyone familiar with this function? On a search of the Forum, I found many references to code to solve the problem, but nothing useful referencing "Networkdays". Is this function functional?
My friend (I really do have a friend!!) is a bit newer to Access than I am, and I don't think she has ever tried to use VBA. Is there an easy way for her to calculate workdays? I feel a bit like the blind leading the blind here!
Thanks for anything you can offer!