| **Navigation:**  [[templates.htm|Templates]] > [[templates by topic.htm|Templates by Topic]] > ADO > ADO Code Templates >====== ADORecordsetGetPageCount code template ====== | [[tplcodeadorecordsetgetmaxrecords.htm|{{btn_prev_n.gif|Previous page}}]][[templates by topic.htm|{{btn_home_n.gif|Return to chapter overview}}]][[tplcodeadorecordsetgetpagesize.htm|{{btn_next_n.gif|Next page}}]] | | || This code template will use the **GetPageCount** method to retrieve the number of pages of the Recordset object's contents. Press the ellipsis button to select a valid **LONG** variable that will hold the PageCount value.