T
Tony
Hi All,
I've got a basic crosstab query set up that totals values by category over a
series of years. The output looks like this:
CAT1 CAT2 CAT3
2007 1 2 3
2006 3 6 9
2005 4 5 7
What I'm attempting to do now is to add additional columns (if possible)
that will show the number of items in each category for each year. The
desired output looks like this:
CAT1 CAT1COUNT CAT2 CAT2COUNT CAT3 CAT3COUNT
2007 1 1 2
2 3 2
2006 3 2 6
4 9 5
2005 4 1 5
2 7 4
In the example above (for 2007):
CAT1's total is 1 and is comprised of 1 item
CAT2'S total is 2 and is comprised of 2 items
CAT3'S total is 3 and is comprised of 2 items
2007's total is 6 and is comprised of 5 items
2006's total is 18 and is comprised of 11 items
etc...
Does anyone know if this can be done and if so, can you point me to any
examples/tutorials, etc.? I'm using Access 2000.
Thanks,
Tony
I've got a basic crosstab query set up that totals values by category over a
series of years. The output looks like this:
CAT1 CAT2 CAT3
2007 1 2 3
2006 3 6 9
2005 4 5 7
What I'm attempting to do now is to add additional columns (if possible)
that will show the number of items in each category for each year. The
desired output looks like this:
CAT1 CAT1COUNT CAT2 CAT2COUNT CAT3 CAT3COUNT
2007 1 1 2
2 3 2
2006 3 2 6
4 9 5
2005 4 1 5
2 7 4
In the example above (for 2007):
CAT1's total is 1 and is comprised of 1 item
CAT2'S total is 2 and is comprised of 2 items
CAT3'S total is 3 and is comprised of 2 items
2007's total is 6 and is comprised of 5 items
2006's total is 18 and is comprised of 11 items
etc...
Does anyone know if this can be done and if so, can you point me to any
examples/tutorials, etc.? I'm using Access 2000.
Thanks,
Tony