VSView Reporting Edition Reference > DataSource Object > DataSource Properties > MaxRecords Property |
Sets or returns the maximum number of records to be retrieved from the database.
dataSource.MaxRecords[ = value As Long ]
This property is useful if you want to limit the size of a report. For example, you may write a report designer with a preview window that shows only the first 500 records from the database.
Setting this property to zero causes the control to retrieve all records.
You can also limit the size of reports by setting the MaxPages property.
Long