The GetRowCount method returns the number of records in the data source.
Function DataSource_GetRowCount() DataSource_GetRowCount = RecordCount End Function
DataSource Object