Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 1.44 KB

File metadata and controls

41 lines (34 loc) · 1.44 KB
title DataSource Property (ADO) | Microsoft Docs
ms.prod sql
ms.prod_service connectivity
ms.technology connectivity
ms.custom
ms.date 01/19/2017
ms.reviewer
ms.topic conceptual
apitype COM
f1_keywords
Recordset20::DataSource
helpviewer_keywords
DataSource property [ADO]
ms.assetid 300a702a-3544-48c5-b759-83b511fe97e0
author MightyPen
ms.author genemi

DataSource Property (ADO)

Indicates an object that contains data to be represented as a Recordset object.

Remarks

This property is used to create data-bound controls with the Data Environment. The Data Environment maintains collections of data (data sources) containing named objects (data members) that will be represented as a Recordset object.

The DataMember and DataSource properties must be used in conjunction.

The object referenced must implement the IDataSource interface and must contain an IRowset interface.

Usage

Dim rs as New ADODB.Recordset  
rs.DataMember = "Command"     'Name of the rowset to bind to.  
Set rs.DataSource = myDE      'Name of the object containing an IRowset.  

Applies To

Recordset Object (ADO)

See Also

DataMember Property