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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extracting Weekdays

Status
Not open for further replies.

JerSand

Technical User
Oct 25, 2000
74
US
A query in my database computes the number of calendar days elapsed between two dates. The syntax is simply:

SELECT Main.[Date Received], Main.[Date Returned], [Date Returned]-[Date Received] AS [Review Time]
FROM Main;


I would like to change this query so that it counts only workdays -- not Saturdays or Sundays. I'd be grateful for any tips or examples.

Thanks.

JerSand
 
Perfect! Thanks so much for your speedy response, Ken.

Jerry
 
see faq181-261 for a more-or-less complete soloution to the entire issue of WORK days (not the same as just 'weekdays').


MichaelRed
m.red@att.net

There is never time to do it right but there is always time to do it over
 
Thank you, MichaelRed. I was so wrapped-up in extracting approximately correct periods that I was letting the matter of holidays slide. However, it's clear from the FAQ to which you referred me that greater exactitude is indeed possible. This will be very useful. Thanks.

JerSand
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top