LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default Recordset object loses validity in call between function & subrout

"Dick Kusleika" wrote ...

The problem is that the Workspace object is falling out of scope

In ADO, Recordset is a top level object, so you don't need to
preserve the connection.


That's right. The Recordset has an ActiveConnection property which
retains a reference to the Connection object.

If you switch to ADO, you'll have to mess with some of the properties of rs
in the function to mirror the dbOpenDynaset that you use now.


The 'dynaset' is known to the non-DAO world as a keyset cursor e.g.
CursorType=adOpenKeyset in ADO.

I think
you'll need to change the CursorLocation property, but I'm not sure about
that.


To use a keyset cursor in ADO, the cursor location must be server
side.

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
call Module from MS Excel Object - Probably very easy VB questions Kevin Excel Discussion (Misc queries) 4 January 4th 08 02:32 AM
Recordset or Object is closed HELP PLEASE! DBAL Excel Programming 10 July 28th 04 09:36 AM
Recordset Problem - object is closed DBAL Excel Programming 0 June 4th 04 11:55 PM
call the object of scanner... sal21[_15_] Excel Programming 1 March 2nd 04 01:47 PM


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