Name
Recordset.PageCount Property — (Versions 2.0, 2.1, 2.5, 2.6)
Synopsis
pagecount = recordset.PageCountThe PageCount property returns the number of logical pages that are in the current Recordset object.
Datatype
Long
Description
The PageCount property returns a value indicating how many logical pages of data are contained within the recordset. A page is determined by the number of records in the recordset divided by the number of records per page (determined by the PageSize property).
If the last page does not contain the number of records in the PageSize property, that page is still counted as a page in the PageCount property.
Returns
If the Recordset object does not support the PageCount property, the return value is -1. This indicates that the number of pages could not be determined.
See Also
Recordset.AbsolutePage Property, Recordset.PageSize Property
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access