Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I count only the # of Weekdays in a query (between 2 dates)

Status
Not open for further replies.

Louise99

Technical User
Sep 13, 2004
70
US
I have a query where I was using datediff() to count the days between two dates and it worked fine. Now I need to count only the number of WEEKDAYS between two dates. I just have run out of ideas. Anyone know how I can do this?



Thanks!
 
be careful. weekdays <> workdays. see the faq's for how to get the number of WORKDAYS between two dates. to et the workdays just do a count on the date range where weekday <> 0 or 7 (similar to VbSunday or VbSaturday?)



MichaelRed


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top