Solved

Refresh a Pivot Table from an access database

Posted on 2013-12-17
1
982 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 31

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Spell Check in VB6 13 43
DCount using "OR" 4 17
Search field on a form 7 14
Run SQL statement in Microsoft Access 9 9
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

708 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

12 Experts available now in Live!

Get 1:1 Help Now