Sun
ONE Active Server Pages Product Home Page Developer Site Version
 

ContentsPreviousNextIndex



ADO Recordset Object PageCount Property

The number of pages of data the Recordset object contains.

PageCount Property Return Values

Returns a Long value.

PageCount Property Remarks

Use the PageCount property to determine how many pages of data are in the Recordset object. Pages are groups of records whose size equals the ADO Recordset Object PageSize Property setting. Even if the last page is incomplete, because there are fewer records than the PageSize value, it counts as an additional page in the PageCount value. If the Recordset object does not support this property, the value will be -1 to indicate that the PageCount is indeterminable.

See the PageSize and AbsolutePage properties for more on page functionality.

PageCount Property Example

See the AbsolutePage example.



ContentsPreviousNextIndex