CDaoRecordset::GetLastModifiedBookmark

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

Return Value

A COleVariant containing a bookmark that indicates the most recently added or changed record.

Remarks

Call this member function to retrieve the bookmark of the most recently added or updated record. When a recordset object is created or opened, each of its records already has a unique bookmark if it supports them. Call GetBookmark to determine if the recordset supports bookmarks. If the recordset does not support bookmarks, a CDaoException is thrown.

When you add a record, it appears at the end of the recordset, and is not the current record. To make the new record current, call GetLastModifiedBookmark and then call SetBookmark to return to the newly added record.

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

CDaoRecordset OverviewClass MembersHierarchy Chart

See Also   CDaoRecordset::GetBookmark, CDaoRecordset::SetBookmark