Solved

Excel Pivot Table - Access Link

Posted on 2014-01-13
4
508 Views
Last Modified: 2014-01-21
Hi,

I'm trying to create a Pivot Table in excel based on a connection to an access database. I managed to easily get data from the database, but what I'm wondering is if there's a way to modify some values in the tables from excel and save the changes back to the access database. So far it always reverts back to the database values if I close and re-open the excel sheet
0
Comment
Question by:FCapo
  • 3
4 Comments
 
LVL 43

Assisted Solution

by:Rob
Rob earned 500 total points
ID: 39778410
Yes, it's a one way flow.  Excel is just used to view the data in the database and mash it up in a pivot table or chart.

Your best bet is to write a macro to read the data on the sheet and form an sql update command and update your database but it wouldn't be via the same connection.  It would all have to be done in code so not sure of your skill level re that...

Are we talking just a few cells or rows and rows of data?
0
 
LVL 43

Assisted Solution

by:Rob
Rob earned 500 total points
ID: 39778418
The tricky part is if you're trying to update a table in Access from a pivot table in excel because a pivot table has pivoted the data.  This means that there is a calculation (expression) that has been created against one or more dimensions (columns in your table).
0
 

Author Comment

by:FCapo
ID: 39779430
Ok I see, thank you! I know the pivot table summarizes data, but when you double click on the cell, it actually opens up the individual rows related to that sum.

I'm wondering then if there's another app that would give me the option to display it in a pivot table, to which I can also makes changes to the data, sort of like Tableau software?
0
 
LVL 43

Accepted Solution

by:
Rob earned 500 total points
ID: 39781623
Ah so you have the table in another sheet?
Because you can bring in any column from any table and more to the point, bring in a query there is no way excel is going to know what tale to update.
However, you can think about this is a different way and use formulas to update the database based on info shown to your users.
E.g. you show them customer info, they change a few fields and you use a formula in the cells adjacent to the table of data to update specific customer info
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

765 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