VSView Reporting Edition Reference > VSReport Control > VSReport Properties > DataSource Property |
Returns the current report's DataSource object.
val% = [form!]VSReport.DataSource
The DataSource Object is responsible for providing the data for the report. It encapsulates an ADO recordset and has the following properties:
ConnectionString |
Database that contains the report data. |
RecordSource |
Table or SQL statement used to generate the recordset. |
Filter |
Condition used to filter records that are added to the recordset. |
MaxRecords |
Maximum number of records to retrieve (zero means no limit). |
Recordset |
ADO Recordset object that contains the report data. The Recordset may be retrieved while the report is being generated, and it may be set when handling the OnOpen event. |
FieldInfo |
Array containing field names, types, and maximum length. This array may be retrieved even if the Recordset is no open, and is useful for designer-type applications. |
IDataSource