Database.Connection Property
Access Developer Reference |
Note |
---|
ODBCDirect workspaces are not supported in Microsoft Office Access 2007. Use ADO if you want to access external data sources without using the Microsoft Access database engine. |
Returns the Connection object that corresponds to the database (ODBCDirect workspaces only).
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.