PC Review


Reply
Thread Tools Rate Thread

Change Data Source for Pivot Table?

 
 
ths78
Guest
Posts: n/a
 
      22nd Sep 2005

Thanks for your time and help.

Applications: Excel 2000 and Access 2000

Problem: I'm working with an Excel Pivot Table that is linked to a
Access table for its data source.

How do I change the data source to a table in another access databas
so that I can update my excel pivot table?

thanks again, ths7

--
ths7
-----------------------------------------------------------------------
ths78's Profile: http://www.excelforum.com/member.php...fo&userid=2748
View this thread: http://www.excelforum.com/showthread.php?threadid=47003

 
Reply With Quote
 
 
 
 
Debra Dalgleish
Guest
Posts: n/a
 
      23rd Sep 2005
You could use programming to change the source. For example:

'====================
Sub PivotChangeSource()
With ActiveWorkbook.PivotCaches(1)
.Connection _
= "ODBC;DSN=MS Access Database;" _
& "DBQ=C:\SalesDB.mdb;DriverId=25;" _
& "FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;"
.CommandText _
= "SELECT *" & Chr(13) & "" & Chr(10) & _
"FROM `c:\SalesDB.mdb`.qryInvoices"
End With
End Sub
'==========================

ths78 wrote:
> Thanks for your time and help.
>
> Applications: Excel 2000 and Access 2000
>
> Problem: I'm working with an Excel Pivot Table that is linked to an
> Access table for its data source.
>
> How do I change the data source to a table in another access database
> so that I can update my excel pivot table?
>
> thanks again, ths78
>
>



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't change Pivot Table data source AABob Microsoft Excel Worksheet Functions 2 13th Apr 2010 06:32 PM
Pivot table change data source mcarter Microsoft Excel Misc 1 15th Sep 2009 01:13 PM
Change data source for pivot table Michal Microsoft Excel Misc 1 30th Oct 2004 11:55 PM
How to change a pivot table data source Rob Microsoft Excel Discussion 2 11th Aug 2004 07:51 PM
Re: Change Pivot Table Data Source Debra Dalgleish Microsoft Excel Misc 0 21st Jun 2004 11:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:48 PM.