I trying to create a crosstab query that will list out my location details horizontally. Each Item can have many locations, I only trying the crosstab because that is what I think I need?
My results are listing every possible location accross as column headings and if a particular item has that location the location will be repeated there.
I want this to apear in a report but there are too many columns and I would want the locations to be seperated by comma's for each record
SQL:
TRANSFORM Var(IC10_Product.ID) AS VarOfID
SELECT IC10_Product.[ITEM CODE], IC10_Product.[LOT IDENT], Var(IC10_Product.ID) AS [Total Of ID]
FROM IC10_Product
GROUP BY IC10_Product.[ITEM CODE], IC10_Product.[LOT IDENT]
PIVOT IC10_Product.Location;
Thanks for any help
My results are listing every possible location accross as column headings and if a particular item has that location the location will be repeated there.
I want this to apear in a report but there are too many columns and I would want the locations to be seperated by comma's for each record
SQL:
TRANSFORM Var(IC10_Product.ID) AS VarOfID
SELECT IC10_Product.[ITEM CODE], IC10_Product.[LOT IDENT], Var(IC10_Product.ID) AS [Total Of ID]
FROM IC10_Product
GROUP BY IC10_Product.[ITEM CODE], IC10_Product.[LOT IDENT]
PIVOT IC10_Product.Location;
Thanks for any help