ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Pivot tables, external data sources and ODBC links (https://www.excelbanter.com/excel-worksheet-functions/9349-re-pivot-tables-external-data-sources-odbc-links.html)

plato

Pivot tables, external data sources and ODBC links
 
arg... yeah man im pretty much in the same boat ... all i need to do is
change the dsn system name :(

did you have any luck?

"makrug" wrote:

I have a spreadsheet which contains 30+ pivot tables which have an external
mdb as their data source. If I change the location of the mdb then I repath
the ODBC link to the new location and manually edit the SQL code in MS Query
to change the path for each pivot table. Rather tedious. I've trawled this
site for some code to do this, but no luck so far.

A second related question. When building external data queries using MS
Query I use a pre-defined ODBC link and select that as the DSN. Now I would
have thought that if the external data source moved all I would need to do is
repath ODBC connection and all will be peachy fine, but this appears not to
be the case. The old path is being remembered somewhere.

Any help appreciated.



All times are GMT +1. The time now is 11:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com