L
Lucson
Hello,
I have a query with 5 to 6 columns and 2000+ rows. The main column is a
serial number column, one serial number has no more than 95 part numbers.
Each serial number is unique with set of part numbers. I like to pivot the
part numbers column to horizontally display part numbers, per serial number.
I created a UnionQuery, then I created a CrossTab query, When I run my
crosstab query, I get a message that have too many row. I thought my crosstab
will give me a new table with each serial number, with its other elements in
one row.
Example:
Original Union Query:
Serial# Description BuildDate PartNumber Comments
A2 Desc1 11/14/2007 123AAA Special Order
A2 Desc1 11/14/2007 456ABA Special Order
A2 Desc1 11/14/2007 BAA213 Special Order
A1 DescP 04/02/2008 21A25B City of Livermore
municipality
A1 DescP 04/02/2008 215B23 City of Livermore
municipality
Here is what I want:
Serial# Description BuildDate PartNumber PartNumber PartNum Comments
A2 Des1 11/14/07 123AAA 456ABA BAA213
Special Order
A1 DesP 04/02/07 21A25B 215B23
City of Liv...
Could someone tell what I am doing wrong? or the best way to approach this?
-
Always Learning
I have a query with 5 to 6 columns and 2000+ rows. The main column is a
serial number column, one serial number has no more than 95 part numbers.
Each serial number is unique with set of part numbers. I like to pivot the
part numbers column to horizontally display part numbers, per serial number.
I created a UnionQuery, then I created a CrossTab query, When I run my
crosstab query, I get a message that have too many row. I thought my crosstab
will give me a new table with each serial number, with its other elements in
one row.
Example:
Original Union Query:
Serial# Description BuildDate PartNumber Comments
A2 Desc1 11/14/2007 123AAA Special Order
A2 Desc1 11/14/2007 456ABA Special Order
A2 Desc1 11/14/2007 BAA213 Special Order
A1 DescP 04/02/2008 21A25B City of Livermore
municipality
A1 DescP 04/02/2008 215B23 City of Livermore
municipality
Here is what I want:
Serial# Description BuildDate PartNumber PartNumber PartNum Comments
A2 Des1 11/14/07 123AAA 456ABA BAA213
Special Order
A1 DesP 04/02/07 21A25B 215B23
City of Liv...
Could someone tell what I am doing wrong? or the best way to approach this?
-
Always Learning