MoveTo Method

Applies To:

Recordset object


Sets current record to the record of the specified index of the Recordset.


Recordset.MoveTo ( long recordNumber )
recordNumber the index or position of the record within the recordset


The value of recordNumber must be between 1 and Recordset.RecordCount.


The following VB code will browse to the 8th record of the Recordset.
Dim RecSet As Object 'Recordset

RecSet.MoveTo 8        'Move to the 8th record

See Also:

MoveNext Method, MovePrevious Method

2005 CambridgeSoft Corporation. All Rights Reserved. Privacy Statement
Tel  800 315-7300 / 617 588-9300     Fax  617 588-9390     Email
CambridgeSoft Corporation, 100 CambridgePark Drive, Cambridge, MA 02140 USA