| re: Group by Month
"Big Time" <big-time-grizz@remove-for-spam-hotmail.com> wrote in
news:djr9o1$h0p$1@nntp.itservices.ubc.ca:
[color=blue][color=green]
>> Use the year([callreceivedDate]) function*100 plus the
>> month([callreceivedDate]) function in the underlying query.
>> and group on that number.
>>
>> You can also add the month name from the
>> format([callreceiveddate],"mmmm") function
>> But that sorts April, December, February.....
>>[/color]
>
> Thanks, that did the trick. I created two columns for the
> month, one so I could get the long name and the other so I
> could sort on the numerical value since as you said, it sorted
> April, December, February.
>[/color]
Hope you cottoned onto the reason for how I defined the numeric
month, to include the year, because after you have accumulated
52 weeks of data, your month totals will get messed up.
--
Bob Quintal
PA is y I've altered my email address. |