|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Moves the cursor to the last row.
HRESULT MoveLast( ) throw( );
A standard HRESULT.
Calls IRowset::RestartPosition to reposition the next-fetch location to the last position and retrieves the last row.
This method requires that you set DBPROP_CANSCROLLBACKWARDS to VARIANT_TRUE before calling Open on the table or command containing the rowset. (For better performance, you might also set DBPROP_QUICKRESTART to VARIANT_TRUE.)