Crosstab Queries HELP!!!

hootie318

Registered User.
Local time
Today, 22:08
Joined
Oct 28, 2003
Messages
130
I have a crosstab query where I can compile the totals per day that I want. What I need to do is then group these days into weeks by the following Sunday for a week ending total. How can I link each day for its corresponding week ending date. I attatched an image if it helps.
 

Attachments

  • Image1.jpg
    Image1.jpg
    78.1 KB · Views: 124
Off the top of my head, I'd try grouping the dates together in a sub query. There should be a Week function to help with the grouping, then have crosstab query use those weeks.
 
I cant figure our how to group those dates by my Sunday date
 
You can group by [DateField]-Weekday([DateField])+8

[DateField]-Weekday([DateField])+8 is the following Sunday.
 

Users who are viewing this thread

Back
Top Bottom