MoveTo Method

Applies To:

Recordset object

Description:

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

Syntax:

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

Remarks:

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

Example:

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   info@cambridgesoft.com
CambridgeSoft Corporation, 100 CambridgePark Drive, Cambridge, MA 02140 USA