The DataSource type exposes the following members.

Methods

  Name Description
Public method BOF
Returns true if the cursor is pointing at the first record in the data source.
Public method EOF
Returns true if the cursor is pointing at the last record in the data source.
Public method GetBookmark
Returns the current cursor position.
Public method GetFieldValue
Gets the value of the given field, at the cursor position.
Public method GetRecordSource
Processes the PARAMETERS clause in the RecordSource string and returns the result.
Public method MoveFirst
Moves the cursor to the first record in the data source.
Public method MoveLast
Moves the cursor to the last record in the data source.
Public method MoveNext
Moves the cursor to the next record in the data source.
Public method MovePrevious
Moves the cursor to the previous record in the data source.
Public method SetBookmark
Sets the current cursor position to supplied value.
Public method ToString
Returns a string representation of DataSource object.
(Overrides Object..::..ToString()()()().)

Properties

  Name Description
Public property CommandTimeOut
Gets or sets the number of seconds to wait before the data connection times out (set to -1 to use the default value, usually 30s).
Public property ConnectionString
Gets or sets the string used to open a database.
Public property Filter
Gets or sets the expression used to filter which data rows are included in the report.
Public property MaxRecords
Gets or sets the maximum number of data rows to be included in the report (set to zero to include all rows).
Public property ParentReport
Gets the report that contains this DataSource.
Public property Recordset
Sets or gets the data source object that provides data to the report.
Public property RecordSource
Gets or sets a string that specifies which table, stored procedure, or Sql command to use for retrieving the report data.

See Also