Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default return ADO record set from Add-In?

Hi.

I've been trying to return an ADO recorset from an Add-In. Maybe there are
some fundamental reasons why that doesn't work? I'm new to ADO.

I've gotten it to return, but haven't been able to access the data. It
tells me that it can't perform that operation when the connection is closed,
etc.

The reason that I had wanted to do it is that the Add-In is in part an
attempt to mask the connection usernname/password to the database.

I've been able to set a pivot cache to the ADO recordset, and have that work
fine...

but, I don't seem to be able to return the recordset to the calling code
control, to do anything else with it, outside of the Add-In.

Is that possible?

Also, is it possible to add another field to the recordset and populate that
with some data derived from a field in the recorset, and a table in an Excel
sheet? It would be doing a vlookup from a field, to the table.

I'm also open to other approaches.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default return ADO record set from Add-In?

Lets see your code

"mark" wrote:

Hi.

I've been trying to return an ADO recorset from an Add-In. Maybe there are
some fundamental reasons why that doesn't work? I'm new to ADO.

I've gotten it to return, but haven't been able to access the data. It
tells me that it can't perform that operation when the connection is closed,
etc.

The reason that I had wanted to do it is that the Add-In is in part an
attempt to mask the connection usernname/password to the database.

I've been able to set a pivot cache to the ADO recordset, and have that work
fine...

but, I don't seem to be able to return the recordset to the calling code
control, to do anything else with it, outside of the Add-In.

Is that possible?

Also, is it possible to add another field to the recordset and populate that
with some data derived from a field in the recorset, and a table in an Excel
sheet? It would be doing a vlookup from a field, to the table.

I'm also open to other approaches.

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
Open new record with selected fields from previous record Design by Sue Excel Discussion (Misc queries) 1 June 12th 09 02:24 PM
Return only 1 record w/ multiple records? Cam Excel Discussion (Misc queries) 2 February 28th 08 10:22 PM
Record macro doesn't record shape properties Tosco[_2_] Excel Programming 3 May 30th 07 02:28 AM
Finding last record in month for each of several types of record. Richard Buttrey Excel Programming 5 April 4th 05 02:11 AM
Record Macro - Record custom user actions Sal[_4_] Excel Programming 1 December 23rd 04 03:18 PM


All times are GMT +1. The time now is 02:32 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"