CDaoRecordset::GetBookmark

COleVariant GetBookmark( );
throw( CDaoException, CMemoryException );

Return Value

Returns a value representing the bookmark on the current record.

Remarks

Call this member function to obtain the bookmark value in a particular record. When a recordset object is created or opened, each of its records already has a unique bookmark if it supports them. Call CanBookmark to determine whether a recordset supports bookmarks.

You can save the bookmark for the current record by assigning the value of the bookmark to a COleVariant object. To quickly return to that record at any time after moving to a different record, call SetBookmark with a parameter corresponding to the value of that COleVariant object.

For more information about finding records, see the article DAO Recordset: Recordset Navigation in Visual C++ Programmer's Guide. For related information, see the topic "Bookmark Property" in DAO Help.

CDaoRecordset OverviewClass MembersHierarchy Chart

See Also   CDaoRecordset::SetBookmark, CDaoRecordset::CanBookmark