Solved

Excel Pivot Table - Access Link

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

747 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