ADODB Object
 
Syntax
 
recordsetobject.MoveLast
 
Description
Moves the position of the current record pointer to the last record.
 
The MoveLast method is called to move to the last record in the specified Recordset object.
 
If the Recordset does not support bookmarks and is using a forward only cursor, then an error will be generated when you call this method.
 
If the current record has been modified and an Update has not been performed, then when you call MoveLast, there will also be an implicit call to Update for the current record. If you do not wish to keep the changes to the current record, then you should call CancelUpdate before you call MoveLast.
 
This is one of four methods belonging to the Recordset object that allow you to navigate or move through a data record. The other three are MoveFirst, MoveNext, and MovePrevious.
See Also
Example
 
objRecordset.CancelUpdate
objRecordset.MoveLast