PC Review


Reply
Thread Tools Rate Thread

creating a pivot with external data source (from access)

 
 
dstiefe
Guest
Posts: n/a
 
      22nd May 2010
I am able to copy the records of a table to a recordset...see below

know I'm wondering how i can up that in a pivot table? I've only written
code when the data resides in an excel sheet

Thank you

this is my code to get the dataset from Access...

Sub GetAccessData()
Dim sh As Worksheet

Set sh = Sheets("Sheet2")

Dim MyConnect As String

Dim MyRecordset As ADODB.Recordset

MyConnect = "Provider=Microsoft.ACE.OlEDB.12.0;" & _
"Data Source = C:\Dans_DB.accdb"

Set MyRecordset = New ADODB.Recordset

MyRecordset.Open "DMA", MyConnect, adOpenStatic, adLockReadOnly
 
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
external data source for pivot tables =?Utf-8?B?Um9iaW4gS3J1cHA=?= Microsoft Excel Crashes 2 11th Jun 2007 02:58 PM
Pivot tables with external data source Mette Microsoft Excel Discussion 3 9th Feb 2007 05:46 PM
Pivot and changing External data source =?Utf-8?B?UGV0ZXI=?= Microsoft Excel Misc 3 13th Jan 2005 04:59 PM
How do I change the external data source location for a pivot tab. =?Utf-8?B?SkRQ?= Microsoft Excel Misc 0 8th Nov 2004 01:50 PM
Pivot Table with external data source in Access Terence Microsoft Excel Misc 0 27th Aug 2003 08:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:25 AM.