Solved

Refresh a Pivot Table from an access database

Posted on 2013-12-17
1
1,002 Views
Last Modified: 2013-12-31
I have a weird problem. My access database we will call db1.accdb exports data into an excel spreadsheet.  Once the data is exported I need to be able to refresh the pivot in the spreadsheet from the access database (I'm trying to automate a process and asking people to refresh the pivot is too much :)

db1.accdb exports info into spreadsheet1.xls
spreadsheet2.xl is linked to spreadsheet1.xls to get the raw data from there
spreadsheet2.xls contains pivot1

I need to create some code in vba that when I click the Export Button in db1 will also refresh pivot1 in spreadsheet2

so bottom line creating a button in access that refreshes an external pivot table in spreadsheet2.xls

thanks in advance, hopefully I didnt make it too confusing
0
Comment
Question by:damixa
1 Comment
 
LVL 32

Accepted Solution

by:
Rob Henson earned 500 total points
ID: 39724584
Why not just link the Pivot in the Excel sheet directly to the access source data?

Or a query in Excel that pulls the data from Access.

Then you have a button in Excel that refreshes query and pivot.

Thanks
Rob H
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows 7 Share with concurrent edits(Excel) 3 32
Is it possible to reset DSum? 12 41
Advice in Xamarin 21 52
can't find file error on web browser 1 13
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now