Not that common, Mick...
Just look at my simple question - thread702-652802
"If it's Access, it ain't easy"
Just considering Monday through Friday being workdays and not considering holidays the following should get you there. Access considers Sunday as the first (1) day of the week and Saturday as the last (7).
I assume your date range starts with "stop date" and ends with "restart date" - minor adjustment if it's the other way around. And note there's no provision for invalid dates.
Dim n As Long
Dim nbrdays As Integer
Dim Elapsed_Days As Integer
Dim workdate As Date
(Add 1 for inclusive dates)
nbrdays = DateDiff("d", stopdate, restartdate) + 1
For n = 0 To nbrdays
workdate = DateAdd("d", n, stopdate)
If Weekday(workdate) not in (1, 7) Then
Elapsed_Days = Elapsed_Days + 1
End If
Next
HTH,
Bob
Thread181-473997 provides information regarding this site.