Pivot Table - identifying datasource

  • Thread starter Thread starter halemweg
  • Start date Start date
H

halemweg

I have an excel pivot table using a query from an access database as the
source. Worked great, including refreshing the data. Now I have a
problem because I had to change the structure of the underlying
database and didn't fix some of the querys yet. When I try to hange the
query I'm getting the error message: "This query can not be edite". On
OK I get the next message: "Too few parameters. Expected 1." I'm sure
that's because of my changes in the database structure. But my problem
is, that I don't know which query I used for the data. Is there anyway
to show which query was used????
Any help would be appreciated.
Juergen Amling
 
You can use a macro to show the query name. For example:

Sub PrintCommandText()
Debug.Print ActiveWorkbook.PivotCaches(1).CommandText
End Sub
 

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