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  

Group by week



 
 
Thread Tools Display Modes
  #1  
Old November 22nd, 2004, 03:35 PM
dgrant_jr
external usenet poster
 
Posts: n/a
Default Group by week

hi there

I am trying to create a report which groups on the week ENDING date. In
addition to do this i need to total a number of values for the 7 days prior
to that week ending date. This is based on a table which would contain the
daily sales figures.

eg.

week ending Total Sales
7/11/04 £1000.00
14/11/04 £999.99
21/11/04 £12345.00


Thanks in advanced

d.
--

  #2  
Old November 22nd, 2004, 05:56 PM
Marshall Barton
external usenet poster
 
Posts: n/a
Default

dgrant_jr wrote:
I am trying to create a report which groups on the week ENDING date. In
addition to do this i need to total a number of values for the 7 days prior
to that week ending date. This is based on a table which would contain the
daily sales figures.

week ending Total Sales
7/11/04 £1000.00
14/11/04 £999.99
21/11/04 £12345.00


Set the report to group on the expression:

=Dte + 7 - DatePart("w",Dte,2)

where Dte is the name your date field.
--
Marsh
MVP [MS Access]
  #3  
Old November 23rd, 2004, 09:23 AM
dg
external usenet poster
 
Posts: n/a
Default

Thanks for ending my pain and suffering!!!


D.


"Marshall Barton" wrote in message
...
dgrant_jr wrote:
I am trying to create a report which groups on the week ENDING date. In
addition to do this i need to total a number of values for the 7 days
prior
to that week ending date. This is based on a table which would contain
the
daily sales figures.

week ending Total Sales
7/11/04 £1000.00
14/11/04 £999.99
21/11/04 £12345.00


Set the report to group on the expression:

=Dte + 7 - DatePart("w",Dte,2)

where Dte is the name your date field.
--
Marsh
MVP [MS Access]



 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grouping by date - How To: Show the first day of the week instead of the first date entered in that week... Neil Setting Up & Running Reports 4 October 8th, 2004 10:56 AM
Grouping by both Month and by Week in a Pivot Table Gordon General Discussion 1 August 21st, 2004 12:36 PM
Using the "Group By" box to group by date sent Keith Brown General Discussion 0 August 18th, 2004 03:25 PM
Group Naming Group Me Outlook Express 1 August 9th, 2004 05:52 AM
Help Needed for Groups Please Paul Black General Discussion 15 June 21st, 2004 02:54 AM


All times are GMT +1. The time now is 11:22 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.