The easier solution is to have a table of non-working days (which include
local holidays and weekend days) and to get the difference in days between
the two days from which you subtract the number of records in the
non-working days table:
( [ending date] - [starting date] + 1) - DCount('*", "NonWorkingDays",
"day BETWEEN #" & [starting date] & "# AND #" & [ending date] & "#")
where I assumed the table NonWorkingDays has one field, day. I also assume
your regional setting is US like for dates (ie. mm/dd/yyyy ).
Sure, your NonWorkingDays has to cover the range of dates which are of
relevant interest.
Vanderghast, Access MVP