CanMove Method

This method determines whether the pointer can be moved in the record in the specified direction.

Applies to objects: Recordset.

Syntax

[[Let] RetVal = ] object.CanMove(Direction)

The CanMove method syntax has these parts:

Part Description
object Required. A reference to an instance of the object.
RetVal Optional. A Boolean type variable.
Direction Required. A Long type variable, that determines the direction in which the pointer moves.

Remarks

The Direction parameter can be a combination of the following values:
cdbMoveNext - the MoveNext function can be used.
cdbMoveFirst - the MoveFirst function can be used.
cdbMoveLast - the MoveLast function can be used.
cdbMovePrevious - the MovePrevious function can be used.
cdbMoveAbsolute - the Move function can be used for absolute positioning.
cdbMoveRelative - the Move function can be used for relative positioning.

The ability of the pointer to move in this or that direction is determined by its type, set in the OpenRecordset method, and by the level of support for this functionality by the driver and the database.

Example

.......

 

See Also

Recordset Object, OpenRecordset Method, Move Method, MoveFirst Method, MoveLast Method, MoveNext Method, MovePrevious Method.