_Application2.NewADODBRecordset Method

Definition

Creates and gets a reference to an empty ActiveX Data Objects (ADO) Recordset object.

public:
 System::Object ^ NewADODBRecordset();
public object NewADODBRecordset ();
abstract member NewADODBRecordset : unit -> obj
Public Function NewADODBRecordset () As Object

Returns

A reference to an empty ActiveX Data Objects (ADO) Recordset object.

Implements

Examples

object adoRS = thisApplication.<span class="label">NewADODBRecordset</span>();

Remarks

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

Note: This method is not intended to be used in a managed-code form. To query a Microsoft SQL Server database, use the System.Data.SqlClient namespace and its associated members by adding a reference to System.Data.dll and a using clause to System.Data.SqlClient.

Important: This member can be accessed only by forms opened from a form template that has been configured to run with full trust using the Security and Trust category of the Form Options dialog box. This member requires full trust for the immediate caller and cannot be used by partially trusted code. For more information, see "Using Libraries from Partially Trusted Code" on MSDN.

Applies to