Form.SelTop property (Access)

Use the SelTop property to specify or determine which row (record) is topmost in the current selection rectangle in a table, query, or form datasheet, or which selected record is topmost in a continuous form. Read/write Long.



expression A variable that represents a Form object.


The SelTop property returns a value between 1 and the number of records in the datasheet or continuous form.

If there's no selection, the value returned by this property is the row and column of the cell with the focus.

If you've selected one or more columns (using the column headings), you can't change the setting of the SelTop property.

Use these properties with the SelHeight and SelWidth properties to specify or determine the actual size of the selection rectangle.

The SelTop and SelLeft properties determine the position of the upper-left corner of the selection rectangle.

The SelHeight and SelWidth properties determine the lower-right corner of the selection rectangle.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.