Looks like what Paul linked should do what you need also, 2nd part excludes Holidays I believe.
I have no idea where to begin with Paul's code. Where exactly do I input these code? Is it in SQL view? in Design View, etc?
This is what I have in my SQL view:
SELECT DateDiff('h',[ClosedOn],[ReportedOn]) AS Expr1, *
FROM eRequestfinaldatabase
WHERE (((Month([eRequestfinaldatabase].[ReportedOn]))=5))
ORDER BY eRequestfinaldatabase.ReportedOn;
So do I delete this enter this below. I know I am definitely wrong but just to show how clueless I am in access:
On Error GoTo Err_WorkingDays
Dim intCount As Integer
StartDate = StartDate + 1
'If you want to count the day of StartDate as the 1st day
'Comment out the line above
intCount = 0
Do While StartDate <= EndDate
'Make the above < and not <= to not count the EndDate
Select Case WeekDay(StartDate)
Case Is = 1, 7
intCount = intCount
Case Is = 2, 3, 4, 5, 6
intCount = intCount + 1
End Select
StartDate = StartDate + 1
Loop
WorkingDays = intCount
Exit_WorkingDays:
Exit Function
Err_WorkingDays:
Select Case Err
Case Else
MsgBox Err.Description
Resume Exit_WorkingDays
End Select