LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default excel pivot table linked to external source

keepITcool wrote ...

edit it in MsQuery..
THEN in SQL mode you can see the table..


I tried this myself and the text in the SQL window was as follows:

{Call MyStoredProc('2001-01-01', '2004-01-01')}

Do I now have to query a system table? Something like:

Dim oConn As Object
Dim oRs As Object

Set oConn = CreateObject("ADODB.Connection")
With oConn
.CursorLocation = 3 ' adUseClient
.ConnectionString = CONN_STRING
.Open

' adSchemaProcedures
Set oRs = .OpenSchema(16, _
Array(Empty, Empty, "MyStoredProc", Empty))

oRs.ActiveConnection = Nothing
.Close

End With

MsgBox oRs!PROCEDURE_DEFINITION

complicated isn't it?


Things aren't always straightforward <g.

Jamie.

--
 
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
Can a pivot table be redirected to an external source? KarenK Excel Worksheet Functions 2 May 14th 10 08:52 PM
View pivot table external data source in Excel 2007 Marc Forget Excel Discussion (Misc queries) 4 January 10th 08 08:05 PM
Pivot Table Data Source external excel file IH Excel Discussion (Misc queries) 4 November 4th 06 02:42 AM
group pivot table from external source scottwilsonx[_60_] Excel Programming 1 October 25th 04 10:43 AM
Excel Pivot Table Template thinks it's linked to external data Tom Excel Programming 0 May 18th 04 04:36 AM


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

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

About Us

"It's about Microsoft Excel"