moveAbsolute Method

See Also            Applies To

Moves the cursor to a specific index within a Recordset object.

Syntax

object.moveAbsolute(nIndex)

Parameters

object

A Recordset script object.

nIndex

An integer that specifies an absolute index that is 1-based.

Remarks

Returns True if successful and False if not successful.

Use moveAbsolute to specify the absolute index for moving the cursor within a Recordset object.

To move the cursor to a relative position, use the move method. Other methods that move the cursor are moveFirst, moveLast, movePrevious, and moveNext.

Example

The following moves the cursor to the fourth record.

   myRS.moveAbsolute(4);