Dynamic Creation of Pivot table in Access

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Presently, I am creating pivot table manually where I have defined the
grouping, but then I am having problem as the grouping range keeps on
changing.

I wish to create a dymanic pivot table which I wish to attach with a query.
 
Have you tried using the Query Design wizard to create a Crosstab query? This
is what Access uses for pivot table type output
 
Dhiraj said:
I did not use any wizard and wrote the query in SQL.

The wizard's quite nice and helps you with the format of the query, and
you'll end up with SQL that looks something like this:

TRANSFORM Sum([Sales])
SELECT [CustomerID], Sum([Sales]) AS [Total Of Sales]
FROM [tblSales]
GROUP BY [CustomerID]
PIVOT [Week];
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top