A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date expressions that can exclude weekends



 
 
Thread Tools Display Modes
  #1  
Old February 14th, 2007, 02:38 PM posted to microsoft.public.access.queries
michelle
external usenet poster
 
Posts: 818
Default Date expressions that can exclude weekends

When using the expressions
Date()-1
and
[Date Completed]-[Date Received]
is there anyway I could get them to not count weekends?
Date()-1 works well until I need it to show Fridays totals on Monday.
[Date Completed]-[Date Received] I have to manually subtract if there is a
weekend involved.

  #2  
Old February 14th, 2007, 04:29 PM posted to microsoft.public.access.queries
Jamie Collins
external usenet poster
 
Posts: 1,705
Default Date expressions that can exclude weekends

On Feb 14, 2:38 pm, Michelle
wrote:
When using the expressions
Date()-1
and
[Date Completed]-[Date Received]
is there anyway I could get them to not count weekends?


See:

Why should I consider using an auxiliary calendar table?
http://www.aspfaq.com/show.asp?id=2519

"A calendar table can make it much easier to develop solutions around
any business model which involves dates. Last I checked, this
encompasses pretty much any business model you can think of, to some
degree. Constant problems that end up requiring verbose, complicated
and inefficient methods include the following questions: How many
business days between x and y? ... As you can imagine, all of these
answers require complex iterative code that steps through and applies
logic to each of the dates in a range. Or do they...? "

Jamie.

--



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:13 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.