| **Navigation:**  [[templates.htm|Templates]] > [[templates by topic.htm|Templates by Topic]] > ADO > ADO Code Templates >====== ADORecordsetPutMaxRecords code template ====== | [[tplcodeadorecordsetputcursorlocation.htm|{{btn_prev_n.gif|Previous page}}]][[templates by topic.htm|{{btn_home_n.gif|Return to chapter overview}}]][[tplcodeadorecordsetputpagesize.htm|{{btn_next_n.gif|Next page}}]] | | || This code template will set the maximum number of rows that the Recordset object should retrieve. Make sure to call this code template before the Open statement of the recordset. Press the ellipsis button to select a valid **LONG** variable that will hold maximum the number of rows to write to the ADO layer.