Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Updating of External Sources | Excel Discussion (Misc queries) | |||
Pivottables - Can i consolidate 2 Data sources in Excel 2007? | Excel Discussion (Misc queries) | |||
Sending pivottables to external users | Excel Discussion (Misc queries) | |||
PivotTables and OLAP sources | Excel Discussion (Misc queries) | |||
Extracting and using Text from external sources | Excel Worksheet Functions |