P
pcbins
I have a table of sales:
SalesRep RptDate Prod_A1 Prod_A2 Prod_B1 Prod_B2 Prod_C1
Jones 1/2/2009 15 2 5 1 1
Rogers 1/2/2009 14 1 3 0 0
Smith 1/2/2009 16 3 6 1 2
Jones 2/2/2009 0 1 20 5 5
Rogers 2/2/2009 2 0 16 2 1
Smith 2/2/2009 1 0 21 3 6
Jones 3/1/2009 5 0 15 2 20
Rogers 3/1/2009 4 0 13 1 17
Smith 3/1/2009 6 0 16 2 21
I have a Union Query to Reformat it into:
SalesRep ReportDate PRODUCT QTY
Jones 02-Jan-09 A 15
Jones 02-Jan-09 B 5
Jones 02-Jan-09 C 1
Rogers 02-Jan-09 A 14
Rogers 02-Jan-09 B 3
Smith 02-Jan-09 A 16
Smith 02-Jan-09 B 6
Smith 02-Jan-09 C 2
Jones 02-Feb-09 A 1
Jones 02-Feb-09 B 20
Jones 02-Feb-09 C 1
Rogers 02-Feb-09 A 2
Rogers 02-Feb-09 B 2
And a CrossTab Query to Display the information the way I need it
(it also asks for 2 dates to display):
SalesRep PRODUCT 1/2/2009 3/1/2009
Jones A 17 5
Jones B 6 17
Jones C 1 23
Rogers A 15 4
Rogers B 3 14
Rogers C 19
Smith A 19 6
Smith B 7 18
Smith C 2 24
BUT I STILL CAN GET IT INTO A REPORT THAT LOOKS LIKE THIS:
SalesRep: JONES
1/2/09 3/1/09
PROD A 15 16
PROD B 5 6
PROD C 1 2
SalesRep: ROGERS
1/2/09 3/1/09
PROD A 0 1
PROD B 20 21
PROD C 5 6
SalesRep: SMITH
1/2/09 3/1/09
PROD A 5 6
PROD B 15 16
PROD C 20 21
(these numbers might be different, sorry)
Do I need to go back to school to understand how to make this simple report?
SalesRep RptDate Prod_A1 Prod_A2 Prod_B1 Prod_B2 Prod_C1
Jones 1/2/2009 15 2 5 1 1
Rogers 1/2/2009 14 1 3 0 0
Smith 1/2/2009 16 3 6 1 2
Jones 2/2/2009 0 1 20 5 5
Rogers 2/2/2009 2 0 16 2 1
Smith 2/2/2009 1 0 21 3 6
Jones 3/1/2009 5 0 15 2 20
Rogers 3/1/2009 4 0 13 1 17
Smith 3/1/2009 6 0 16 2 21
I have a Union Query to Reformat it into:
SalesRep ReportDate PRODUCT QTY
Jones 02-Jan-09 A 15
Jones 02-Jan-09 B 5
Jones 02-Jan-09 C 1
Rogers 02-Jan-09 A 14
Rogers 02-Jan-09 B 3
Smith 02-Jan-09 A 16
Smith 02-Jan-09 B 6
Smith 02-Jan-09 C 2
Jones 02-Feb-09 A 1
Jones 02-Feb-09 B 20
Jones 02-Feb-09 C 1
Rogers 02-Feb-09 A 2
Rogers 02-Feb-09 B 2
And a CrossTab Query to Display the information the way I need it
(it also asks for 2 dates to display):
SalesRep PRODUCT 1/2/2009 3/1/2009
Jones A 17 5
Jones B 6 17
Jones C 1 23
Rogers A 15 4
Rogers B 3 14
Rogers C 19
Smith A 19 6
Smith B 7 18
Smith C 2 24
BUT I STILL CAN GET IT INTO A REPORT THAT LOOKS LIKE THIS:
SalesRep: JONES
1/2/09 3/1/09
PROD A 15 16
PROD B 5 6
PROD C 1 2
SalesRep: ROGERS
1/2/09 3/1/09
PROD A 0 1
PROD B 20 21
PROD C 5 6
SalesRep: SMITH
1/2/09 3/1/09
PROD A 5 6
PROD B 15 16
PROD C 20 21
(these numbers might be different, sorry)
Do I need to go back to school to understand how to make this simple report?