Re: ADO Recordset's object method Open
From: Stephen Howe (stephenPOINThoweATtns-globalPOINTcom)
Date: 04/06/04
- Next message: Munatsir: "How to check whether database connection is dropped?With out having any dummy Query"
- Previous message: Stephen Howe: "Re: Can you create another ADO recordset from another ADO recordset"
- In reply to: Mad Hot dog: "ADO Recordset's object method Open"
- Next in thread: Mad Hot dog: "Re: ADO Recordset's object method Open"
- Reply: Mad Hot dog: "Re: ADO Recordset's object method Open"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 6 Apr 2004 12:21:30 +0100
> What is a cause of this error?
Did you read the Microsoft ADO documentaton on Bookmarks ?
It says here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdprobookmark.asp
this:
>>>>>>>>>>
Use the Bookmark property to save the position of the current record and
return to that record at any time. Bookmarks are available only in Recordset
objects that support bookmark functionality.
>>>>>>>>>>
to which I have a few questions for you:
Question 1: What happens if your recordset does not support bookmarks?
Bookmarks are only available for certain combinations of
CursorTypes,CursoroLocations.LockTypes.
Do
if (recs ->Supports(adBookmark))
{
// record Bookmark, it is supported
}
Question 2: What happens if testtable is empty? Then there is no current
record. So there is nothing to bookmark
SH
- Next message: Munatsir: "How to check whether database connection is dropped?With out having any dummy Query"
- Previous message: Stephen Howe: "Re: Can you create another ADO recordset from another ADO recordset"
- In reply to: Mad Hot dog: "ADO Recordset's object method Open"
- Next in thread: Mad Hot dog: "Re: ADO Recordset's object method Open"
- Reply: Mad Hot dog: "Re: ADO Recordset's object method Open"
- Messages sorted by: [ date ] [ thread ]