Solved

Excel Pivot Table - Access Link

Posted on 2014-01-13
4
501 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 42

Assisted Solution

by:Rob Jurd, EE MVE
Rob Jurd, EE MVE 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 42

Assisted Solution

by:Rob Jurd, EE MVE
Rob Jurd, EE MVE 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 42

Accepted Solution

by:
Rob Jurd, EE MVE 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

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
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…

770 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