If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > ADO recordset not bookmarkable

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-14-03, 11:28
Ad Dieleman Ad Dieleman is offline
Registered User
 
Join Date: Jan 2003
Location: Dordrecht, The Netherlands
Posts: 95
ADO recordset not bookmarkable

In a VB6 application I'm using an ADO recordset connecting to a SQL Server 2000 database with MDAC 2.7 (also tried MDAC 2.1). When I assign this recordset as the datasource to a DataGrid and run the program, I get the error message "Recordset not bookmarkable".

I played around with the recordset's CursorLocation, CursorType and LockType, but the error message persists.

I DON'T want to use an ADO Data Control, because it doesn't expose a connection object as far as I can see. I know I can obtain its connection string, but I want to use its connection object for executing commands for the same connection.

Is there a way to use a recordset with the DataGrid under these circumstances?

>>> Edited <<<

In the meantime I found that a reference must be made to "Microsoft ActiveX Data Objects Recordset 2.7 Library".

Last edited by Ad Dieleman; 02-14-03 at 11:41.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On