Refreshing Excel Pivot based on Access DB when DB has moved

John P

Board Regular
Joined
Oct 17, 2002
Messages
108
I am developing an Access DB that will be utilized as the source for many different reporting pivot tables. In my testing if I create the pivots, move the Access DB to another folder and click refresh the application cannot find the DB and the refresh fails. My concern is that I am creating the DB for users who may place it within a different folder. Is there an area that I can change the code in the Excel pivot so it points anywhere I elect for the DB to exist.

I already have the DB completed as well as the pivots and tables that source the pivot table, so I am hoping there is a better way than recreating the DB and pivots on the users devices. Any suggestions are welcomed. Thanks
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
MS Query, although handy and easy to learn, is a fairly weak tool. The only work-around that I've found for moved data sources is to rename the database in the Pivot's query's SQL (which isn't really a work-around at all based on what you're wanting to do). My only suggestion is to start getting into the world of Automation and have your databases use the Excel Object Model to build Spreadsheets on the fly. Takes a lot of knowledge and coding, but you'll find Automation to be infinitely more powerful than MS Query.
 
Upvote 0

Forum statistics

Threads
1,221,579
Messages
6,160,615
Members
451,658
Latest member
NghiVmexgdhh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top