Maybe there is an easier way to do this. We need to track staff time off and I was using excel and had a separate worksheet for each employee and this worked fine, but now they want more reports showing the data various ways and I thought it was to hard to display the data the ways they need it, also they will add new reports later.
I put the data in to Access and I need a report to show each employee and count the number of days taken off between the fields [StartDate]and [EndDate] and to exclude weekends and holidays from those dates. I use DateDiff("d",[StartDate],[EndDate])+1, this accurately counts the days but if the date range includes a weekend or holiday it is also counted. I need it to exclude weekends and holidays in the count.
The function in Excel is "NetWorkDays" but I can not find similar in access.
I put the data in to Access and I need a report to show each employee and count the number of days taken off between the fields [StartDate]and [EndDate] and to exclude weekends and holidays from those dates. I use DateDiff("d",[StartDate],[EndDate])+1, this accurately counts the days but if the date range includes a weekend or holiday it is also counted. I need it to exclude weekends and holidays in the count.
The function in Excel is "NetWorkDays" but I can not find similar in access.