dbTalk Databases Forums  

Sum and date ranges

comp.database.ms-access comp.database.ms-access


Discuss Sum and date ranges in the comp.database.ms-access forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Matt
 
Posts: n/a

Default Sum and date ranges - 01-16-2007 , 05:55 AM






Hi all,

I have a database with a table storing a list of names, invoice dates, and
invoice amounts.

What I'm looking to do is to create a sum of the invouice amounts based on a
range of invoice dates. e.g. Sum of invouice amounts for invoice date range
between date1 and date2 then sum of invoice amount for date range between 3
and 4.

Doing this in seperate steps works fine, so one query for date range 1 and 2
and then another for 3 and 4 but to produce the correct report I need all in
one query.

A crosstabe query grouping by month is almost what I'm looking for, but I
need specific date ranges not calendar months.

Any help would be greatly appreciated.

Cheers.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.