calculating date difference excluding weekends in access

ianw111

New member
Local time
Today, 22:07
Joined
May 15, 2006
Messages
3
I have a query that is looking to calculate staff absence.

Absence Start date & Return to work date

Looking to calculate number of days (not a problem) but to exclude weekends ie saturday and sunday ????

Not sure if this can be done --- any assistance would be greatly received.

thanks and regards

ian watson
Yarm Cleveland UK
 
Set the first parameter for the datediff function to 'W' for weekday. Then the function will count the weekdays between the two dates.
 
What about bank holidays?


Col
 
Set the first parameter for the datediff function to 'W' for weekday. Then the function will count the weekdays between the two dates.

i know this is gonna be a bit of a bump and may annoy some people, sorry
but i have to say this just helped me so much on something id spent a ridiculous amount of time trying to do and so
Thanks :D
 
Hi -

Despite what the help file may tell, the "w" option does not return number of weekdays, but rather the number of full weeks.

<snip>
Bob
Thanks Bob. I thought my acXP might have been broken! :eek:
 
Last edited:
thats odd cos it did the number of weekdays for me no problem
 
I have a query that is looking to calculate staff absence.

Absence Start date & Return to work date

Looking to calculate number of days (not a problem) but to exclude weekends ie saturday and sunday ????

Not sure if this can be done --- any assistance would be greatly received.

thanks and regards

ian watson
Yarm Cleveland UK

Could you please show me a simple demo? Your kind cooperation wouild be highly apereciate. Thank You
 
Could you please show me a simple demo? Your kind cooperation wouild be highly apereciate. Thank You
 

Users who are viewing this thread

Back
Top Bottom