Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 1.47 KB

Access.CodeProject.Connection.md

File metadata and controls

36 lines (21 loc) · 1.47 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
CodeProject.Connection property (Access)
vbaac10.chm12720
vbaac10.chm12720
Access.CodeProject.Connection
3fb6bb6f-83c9-f682-79fc-6cdace654d26
02/27/2019
medium

CodeProject.Connection property (Access)

Use the Connection property to return a reference to the current ActiveX Data Objects (ADO) Connection object and its related properties. Read-only Connection.

Syntax

expression.Connection

expression A variable that represents a CodeProject object.

Remarks

Use the Connection property to refer to the Connection object of the Access project or Access database code database object. Use the Connection property to call methods on the Connection object such as BeginTrans and CommitTrans.

Note

The Connection property actually returns a reference to a copy of the ActiveX Data Object (ADO) connection for the active database. Thus, applying the Close method or in anyway attempting to alter the connection through the Connection object's methods or properties will have no affect on the actual connection object used by Microsoft Access to hold a live connection to the current database. Because the Connection property is the main Shape provider connection, the following information is necessary when using this property.

[!includeSupport and feedback]