Database.Connection property (DAO)

Applies to: Access 2013, Office 2013

Syntax

expression .Connection

expression A variable that represents a Database object.

Remarks

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