Export (0) Print
Expand All

Application.NewADODBConnection Method

Office 2007
Creates and returns a reference to an empty ActiveX Data Objects (ADO) Connection object.

Version Information
 Version Added:  InfoPath 2003

Syntax

expression.NewADODBConnection

expression   An expression that returns a Application object.

Return Value
[_CONNECTION]

Remarks

If the form is not fully trusted, the NewADODBConnection method will return a "permission denied" error.

Security Level 3: Can be accessed only by fully trusted forms.

Example

In the following example, the NewADODBConnection method of the Application object is used to set a reference to an empty ADO Connection object:

JScript
var objADOConnection;

objADOConnection = Application.NewADODBConnection();



Community Additions

ADD
Show:
© 2015 Microsoft