PROPERTY:  Recordset::PageCount

long = recordsetobject.PageCount

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.

Code (VBScript):
intPageCnt = rsChant.PageCount
rsChants.AbsolutePage = intPageCnt

Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information