LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Pivottables from external sources

Hello
I have created a pivot table from an external source. The external source is a Access database that is in the same directory as the excel workbook.

The issue is that Microsoft Query automatically modifies my SQL statement to include a hardcoded path to the database

For example, "Select * FROM MyTable" changes to

"SELECT * FROM `C:\Program Files\MyFolder\db`.MyTable

If I send the db and excel file to someone, and they do not put in the exact folder, the pivottable does not know where to get data from

My questions are
1. Can I prevent the hardcoded path
2. Is there a way to dynamically through code on sheet startup, to modify the SQL statement to have a different path? The "layout" of the pivottable would need to be persisted and/or recoded
3. Any advice would be appreciated

Thanks and I look forward to your response

Dan
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating of External Sources ogerriz Excel Discussion (Misc queries) 0 May 8th 09 10:37 AM
Pivottables - Can i consolidate 2 Data sources in Excel 2007? Kevin Clark[_2_] Excel Discussion (Misc queries) 4 January 8th 08 12:32 AM
Sending pivottables to external users RMF Excel Discussion (Misc queries) 5 March 29th 06 11:59 PM
PivotTables and OLAP sources Gilles Desjardins Excel Discussion (Misc queries) 0 February 11th 06 10:49 PM
Extracting and using Text from external sources Palmley Excel Worksheet Functions 6 January 14th 05 12:22 AM


All times are GMT +1. The time now is 10:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"