?
Solved

Excel Pivot Table - Access Link

Posted on 2014-01-13
4
Medium Priority
?
536 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 43

Assisted Solution

by:Rob
Rob earned 2000 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 2000 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 2000 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

752 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