AbsolutePage Property

Indicates the absolute "page" on which the current record is located, or specifies to which "page" to move for a new current record.

Settings and Return Values

Sets or returns a Long value from 1 to the number of pages in the Recordset object ( PageCount). The following return values are also valid:

Constant

Value

Description

adPosUnknown

-1

No current record

adPosBOF

-2

Before the first record

adPosEOF

-3

After the last record

Remarks

Use the AbsolutePage property to set or return the "page" number on which the current record is located. Use the PageSize property to logically divide the Recordset object into a series of pages, each of which has the number of records equal to PageSize.

Like the AbsolutePosition property, AbsolutePage is 1-based and returns 1 when the current record is the first record in the Recordset. If the provider cannot determine the absolute page number, it returns adPosUnknown (-1). If either the BOF or EOF property is True, the provider returns the constants adPosBOF or adPosEOF respectively.

You can set this property to move to the first record of a particular page. You can obtain the total number of pages from the PageCount property.