G
Guest
I have a table that contains monthly totals for categories of information.
Example Fields and Data and Data Type:
MonthYear June 2005 Date
CallsForService 100 Num Int
Citations 135 Num Int
OWLS 11 Num Int
Warnings 70 Num Int
Warrants 15 Num Int
There is one record for each month of the year.
Now for the query...I need to add up 12 months of data on a monthly basis.
For examples, I need to add up June 2004 to May 2005. Then for the next
month I need May 2004 to June 2005. And so on.
I tried building the query with MonthYear and categirt fields listed. Then
added the Total Row and SUMed each Category. I tried to use GROUP BY on
MonthYear, but of course that did not work since there is only one record per
month.
I thought about DataAdd function, but couldn't pull anything together with
that either.
Sooo...I'm lost. I would appreciate help with this.
Thanks!
Santara
Example Fields and Data and Data Type:
MonthYear June 2005 Date
CallsForService 100 Num Int
Citations 135 Num Int
OWLS 11 Num Int
Warnings 70 Num Int
Warrants 15 Num Int
There is one record for each month of the year.
Now for the query...I need to add up 12 months of data on a monthly basis.
For examples, I need to add up June 2004 to May 2005. Then for the next
month I need May 2004 to June 2005. And so on.
I tried building the query with MonthYear and categirt fields listed. Then
added the Total Row and SUMed each Category. I tried to use GROUP BY on
MonthYear, but of course that did not work since there is only one record per
month.
I thought about DataAdd function, but couldn't pull anything together with
that either.
Sooo...I'm lost. I would appreciate help with this.
Thanks!
Santara