Hi Shamu.
A Google search would return many results.
Here's one:
<a href="http://articles.techrepublic.com.com/5100-10878_11-6121381.html">How do I... create a crosstab query in Microsoft Access?</a>
Last Wiki Answer Submitted: September 22, 2010 1:43 pm by carlosdl63,580 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
there is a crosstab query wizard in access, but it limits how many columns you can select.
Use this this wizard to create a simple crosstab, and the using designer edit the query to add extra columns as required.
Or you can code in SQL in access.
eg.
TRANSFORM First(dbo_vSid.[No Of Products]) AS [FirstOfNo Of Products]
SELECT dbo_vSid.Customer, First(dbo_vSid.[No Of Products]) AS [Total Of No Of Products]
FROM dbo_vSid
GROUP BY dbo_vSid.Customer
PIVOT dbo_vSid.YP;
The table this uses has 3 fields, YP, Customer, [No of Products]
there is a crosstab query wizard in access, but it limits how many columns you can select.
Use this this wizard to create a simple crosstab, and the using designer edit the query to add extra columns as required.
Or you can code in SQL in access.
eg.
TRANSFORM First(dbo_vSid.[No Of Products]) AS [FirstOfNo Of Products]
SELECT dbo_vSid.Customer, First(dbo_vSid.[No Of Products]) AS [Total Of No Of Products]
FROM dbo_vSid
GROUP BY dbo_vSid.Customer
PIVOT dbo_vSid.YP;
The table this uses has 3 fields, YP, Customer, [No of Products]
Have fun