Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2008

Tip: Looking for answers? Try searching our database.

return ADO record set from Add-In?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mark - 12 Mar 2008 18:12 GMT
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.
Mike - 12 Mar 2008 20:03 GMT
Lets see your code

> Hi.
>
[quoted text clipped - 21 lines]
>
> I'm also open to other approaches.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.