ADODB Object
 
Syntax
 
long = recordsetobject.PageCount
 
Description
Returns a long value that is the number of pages contained in a Recordset object.
 
The PageCount property returns a long value that is the number of pages of data contained in the Recordset object. After being called, this property will set the current record pointer to the first record on the last page.
 
If the provider does not recognize this property, a value of -1 will be returned.
 
You use the PageSize property to determine how many records will be displayed on each page.
See Also
Example
 
intPageCnt = rsChant.PageCount
rsChants.AbsolutePage = intPageCnt