Solved

Refresh a Pivot Table from an access database

Posted on 2013-12-17
1
1,020 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

785 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