I'm trying to run a simple query in Access 2007 to show the difference between two dates, but only have it calculate weekdays (I don't care about holidays).
I throught doing "w" would only show weekdays, but it is calcuating weeks.
Is there an "easy" way to calculate the # of weekdays?
The other question is, is it possible to have it return a 1 even if the start date and end date are the same date? (both start_date and end_date do track time based off the Now() function)
I throught doing "w" would only show weekdays, but it is calcuating weeks.
Code:
SELECT
tblWithGroup.[ID],
tblWithGroup.[Issues_ID],
tblWithGroup.[Group],
tblWithGroup.[Start_Date],
tblWithGroup.[End_Date],
DateDiff("w",[start_date],[end_date]) AS [Total Days with Group]
FROM tblWithGroup;
Is there an "easy" way to calculate the # of weekdays?
The other question is, is it possible to have it return a 1 even if the start date and end date are the same date? (both start_date and end_date do track time based off the Now() function)