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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Combining Data for a Quarterly Report



 
 
Thread Tools Display Modes
  #1  
Old August 25th, 2009, 12:28 PM posted to microsoft.public.access.reports
Tsidjpt
external usenet poster
 
Posts: 3
Default Combining Data for a Quarterly Report

I've not been able to work on this for a month and I appreciate the responses
I've received but am still a bit confused. So, I'll try again with some
examples and hopefully a little better explanation. Listed below is the
format and the headings that I need to use.

MONTH USAGE Previous 11 MONTHS USAGE
April 2009 10 132.619 (= to
5/1/2008 to 3/31/2009)
May 2009 12.417 127.504 (= to 6/1/2008 to
4/31/2009)
June 2009 9.872 131.72 (= to 7/1/2008
to 5/31/2009).

Even though this says April through June it could be Jan to March, etc. of
any given year based upon a date range. My query will list the "Usage" totals
by month, but I don't know how to add the previous 11 to each months listed.
Also, if basic is used I'm not sure how to incorporate it. Please feel free
to ask for clarification on any part of this example. I appreciate your time
and patience in answering this.
  #2  
Old August 25th, 2009, 10:16 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Combining Data for a Quarterly Report

I expect you could use a subquery in your report's record source to get the
previous 11 months. The subquery might look like:

Prev11: (SELECT Sum(USAGE) FROM tblYourtable A WHERE A.[Month] BETWEEN
DateAdd("m",-11,tblYourTable.[MONTH] AND tblYourTable.[Month])

--
Duane Hookom
Microsoft Access MVP


"Tsidjpt" wrote:

I've not been able to work on this for a month and I appreciate the responses
I've received but am still a bit confused. So, I'll try again with some
examples and hopefully a little better explanation. Listed below is the
format and the headings that I need to use.

MONTH USAGE Previous 11 MONTHS USAGE
April 2009 10 132.619 (= to
5/1/2008 to 3/31/2009)
May 2009 12.417 127.504 (= to 6/1/2008 to
4/31/2009)
June 2009 9.872 131.72 (= to 7/1/2008
to 5/31/2009).

Even though this says April through June it could be Jan to March, etc. of
any given year based upon a date range. My query will list the "Usage" totals
by month, but I don't know how to add the previous 11 to each months listed.
Also, if basic is used I'm not sure how to incorporate it. Please feel free
to ask for clarification on any part of this example. I appreciate your time
and patience in answering this.

 




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 08:34 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.