K
klp via AccessMonster.com
I have a query, where it will ask for the current year and the previous year
dates. Once this is processed it will produce my query as follows:
CurDate: is the month of Sept
PrevDate: is the month of Aug
Rep Date Cur Qty CurAmt PrevQty PrevAmt
1 08/01/07 12
13
1 09/08/07 5 10
1 08/15/07 1
3
2 09/01/07 2 50
2 08/02/07 25
100
2 09/19/07 1 5
4 08/31/07 15
30
4 09/01/07 6 5
5 09/06/07 45 52
5 08/28/07 10
10
7 09/13/07 43 12
7 08/22/07 2
32
What I want is to see my data on my report as follows: Summing them by Rep
Rep Cur Qty Cur Amt PrevQty PrevAmt
1 5 10 13 16
2 3 55 25 100
4 6 5 15 30
5 45 52 10 10
7 43 12 2 32
So it will group them by rep and sum the amounts up by rep. Make sense? I
wasn't sure if I need to create a crosstab query or if I can get around not
doing that. Any questions please let me know.
Thanks in advanced.
Kim P
dates. Once this is processed it will produce my query as follows:
CurDate: is the month of Sept
PrevDate: is the month of Aug
Rep Date Cur Qty CurAmt PrevQty PrevAmt
1 08/01/07 12
13
1 09/08/07 5 10
1 08/15/07 1
3
2 09/01/07 2 50
2 08/02/07 25
100
2 09/19/07 1 5
4 08/31/07 15
30
4 09/01/07 6 5
5 09/06/07 45 52
5 08/28/07 10
10
7 09/13/07 43 12
7 08/22/07 2
32
What I want is to see my data on my report as follows: Summing them by Rep
Rep Cur Qty Cur Amt PrevQty PrevAmt
1 5 10 13 16
2 3 55 25 100
4 6 5 15 30
5 45 52 10 10
7 43 12 2 32
So it will group them by rep and sum the amounts up by rep. Make sense? I
wasn't sure if I need to create a crosstab query or if I can get around not
doing that. Any questions please let me know.
Thanks in advanced.
Kim P