Connection Property

See Also   Applies To

On a CdbDatabase object, returns the CdbConnection object that corresponds to the database (ODBCDirect workspaces only). This property is read-only for CdbDatabase.

On a CdbRecordset object, returns the CdbConnection object that owns the Recordset (ODBCDirect workspaces only). This property is read/write for CdbRecordset.

Syntax

CdbConnectionGetConnection(VOID);

Remarks

On a CdbDatabase object, use the Connection property to obtain a reference to a CdbConnection object that corresponds to the CdbDatabase. In DAO, a CdbConnection object and its corresponding CdbDatabase object are simply two different object variable references to the same object. The Database property of a CdbConnection object and the Connection property of a CdbDatabase object make it easier to change connections to an ODBC data source through the Microsoft Jet database engine to use ODBCDirect.