Hi Folks,
There's this application we are working on here, written completely in excel and uses Pivot tables. Now, we have a particular pivot table here that gets the data from a SQL query (using Microsoft Query I think).
Here's what I do to get to the query:
Right click on a cell in the Pivot sheet and Go to the Pivit Table Wizard. Subsequently, follow all the steps till I get to the SQL query.
Here's the query I get <table width="550px"></table>
Now, the highlighted RED section is a path to an MDB file placed within the same folder. We need to remove all hardcoding references to this path so that in case the entire folder gets moved to some other place (say F:\topstat\xls-ro\....), it does not break.
The MDB file and the Pivot sheet will ALWAYS remain in the same folder structure.
Any help or inputs on this would be appreciated.
Thanks
There's this application we are working on here, written completely in excel and uses Pivot tables. Now, we have a particular pivot table here that gets the data from a SQL query (using Microsoft Query I think).
Here's what I do to get to the query:
Right click on a cell in the Pivot sheet and Go to the Pivit Table Wizard. Subsequently, follow all the steps till I get to the SQL query.
Here's the query I get <table width="550px"></table>
Code:
SELECT `SS Camp 2010`.Country, `SS Camp 2010`.`Product Line Name`, `SS Camp 2010`.`Edition Name`, `SS Camp 2010`.`Promotion Prefix`, `SS Camp 2010`.Info, `SS Camp 2010`.Year, `SS Camp 2010`.Month, `SS Camp 2010`.Week, `SS Camp 2010`.Despatch, `SS Camp 2010`.Intake
FROM `[COLOR=Red][B]G:\topstat\xls-ro\SSCAMP`.`SS Camp 2010` `SS Camp 2010`[/B][/COLOR]
ORDER BY `SS Camp 2010`.Year
Now, the highlighted RED section is a path to an MDB file placed within the same folder. We need to remove all hardcoding references to this path so that in case the entire folder gets moved to some other place (say F:\topstat\xls-ro\....), it does not break.
The MDB file and the Pivot sheet will ALWAYS remain in the same folder structure.
Any help or inputs on this would be appreciated.
Thanks