Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Changing pivot table ADO recordset

Hi fellows,
I've created a pivot table from an ADO recordset. (No problem in that)
like in this code:

Dim rs As New ADODB.Recordset
rs.open ........
Dim pc As PivotCache
Set PC=ThisWorkbook.PivotCaches.Create(....)
Set pc.Recordset = rs
pc.CreatePivotTable(...)


The problem is:
If the source data has changed and I want to transfer these updates to the pivot table (and its pivot cache).
How can I tell the pivot table (or its pivot cache) to use another updated ADO recordset?

I do not want to re-construct a new pivot table each time there are changes in the source data, Just updating the data (or the recordset) in the first pivot table.

Also I do not want the trivial solution that is pasting the recordset contents into a worksheet using rs.CopyFromRecordset and then use the pasted range as a source for a permanent pivottable.
I just want to throw a new recordset into the pivot table (or its pivot cache) directly.

Thanks in advance
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need code assistance to update pivot table from an ADO recordset Bryan S Excel Programming 4 September 23rd 08 07:05 PM
Creating Pivot Table from a DAO recordset [email protected] Excel Programming 0 May 17th 07 03:07 PM
pivot table from recordset - very slow performance [email protected] Charts and Charting in Excel 1 May 14th 06 04:05 PM
reusing a recordset for a pivot-table? Bart op de grote markt Excel Programming 2 March 7th 06 03:34 PM
reusing a recordset for a pivot-table [email protected] Excel Programming 2 February 28th 06 03:36 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"