Solved

Excel Pivot Table - Access Link

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

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…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

937 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

9 Experts available now in Live!

Get 1:1 Help Now