Recordset.MaxRecords Property

Gets or sets the maximum number of rows the recordset should return.

Syntax

value = rs.MaxRecords
rs.MaxRecords = newValue

Return Value

Integer. Returns maximum rows limit.

Remarks

Code Example

<%
Option Explicit
Dim rs

Set rs = Server.CreateObject("ADODB.Recordset")
rs.MaxRecords = 100
Response.Write CStr(rs.MaxRecords)

Set rs = Nothing
%>
Page: md/libraries/adodb/properties/recordset.maxrecords.md
AxonASP Documentation Library
The search index is currently being created.
Please wait. This window will close automatically.