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  

Summing fields between two dates



 
 
Thread Tools Display Modes
  #1  
Old December 15th, 2009, 08:14 PM posted to microsoft.public.access.queries
RealGomer
external usenet poster
 
Posts: 103
Default Summing fields between two dates

I think I know how to do this but any extra help would be appreciated.

I have a table with four fields - net sales, payin date, payin number, and
payin amount. What I want to do is create a query that will summarize all of
the amounts in "net sales" within a specified date range. I thought an
expression reading SUM([net sales]) BETWEEN [start date] AND [end date] would
work, but it doesn't.
Suggestions?
--
Für Elise - Support the Breast Cancer & Heart Foundations
  #2  
Old December 15th, 2009, 08:53 PM posted to microsoft.public.access.queries
vanderghast
external usenet poster
 
Posts: 593
Default Summing fields between two dates

SELECT SUM( [net sales] )
FROM tableNameHere
WHERE fieldWithDateHere BETWEEN [start date] AND [end date]


as SQL in SQL view, should do.



Vanderghast, Access MVP



"RealGomer" wrote in message
...
I think I know how to do this but any extra help would be appreciated.

I have a table with four fields - net sales, payin date, payin number, and
payin amount. What I want to do is create a query that will summarize all
of
the amounts in "net sales" within a specified date range. I thought an
expression reading SUM([net sales]) BETWEEN [start date] AND [end date]
would
work, but it doesn't.
Suggestions?
--
Für Elise - Support the Breast Cancer & Heart Foundations


 




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 10:08 AM.


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