Microsoft Remote Data ServiceMicrosoft Remote Data Service*
*Contents  *Index  *Topic Contents

MoveFirst, MoveLast, MoveNext, MovePrevious Methods

Moves to the first, last, next, or previous record in a displayed Recordset.

Syntax

DataControl.Recordset.{MoveFirst | MoveLast | MoveNext | MovePrevious}
PartDescription
DataControlAn object variable that represents an RDS.DataControl object.

Applies To

RDS.DataControl

Remarks

You can use the Move methods with the RDS.DataControl object to navigate through the data records in the data-bound controls on a Web page. For example, suppose you display a Recordset in a grid by binding to an RDS.DataControl object. You can then include First, Last, Next, and Previous buttons that users can click to move to the first, last, next, or last record in the displayed Recordset. You do this by calling the MoveFirst, MoveLast, MoveNext, and MovePrevious methods of the RDS.DataControl object in the onClick procedures for the First, Last, Next, and Previous buttons, respectively. The Address Book example shows how to do this.

Example

See Also

Navigating Through Recordset Objectss


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.