Open Method

Opens a Recordset object.

ConnectionObject.Open(Recordset, Source, Cursor Location, Cursor Type, Lock Type, Command Type)

Client support

   Newlook Smartclient

   Newlook Server

Use

If the Recordset contains no records, both the BOF property and EOF property are set to True, and the current record position is undefined. You can still add new data to this empty Recordset object.

When you have concluded your operations over an open Recordset object, use the Close method to free any associated system resources.

Parameters

Recordset  -  (literal, Required)

Specifies the name of the Recordset to be opened. The recordset will be referred to by this name in all subsequent DB methods. For example, your Recordset name might be "CustomerDetailsRS".

Source  -  (literal, Required)

Specifies the source of the recordset. For DDM data sources, this argument specifies the database file, and optionally the member. For ADO data sources, this argument is interpreted according to the value of the Command Type argument, described below. To specify the source as an expression, prefix the source with an equals (=) sign

Cursor Location  -  (Integer, Required)

Specifies the location of the cursor service for the recordset. Use one of the following pre-defined Cursor Location constants.

This argument is ignored for DDM data sources.  

Cursor Type  -  (Integer, Required)

Specifies the type of cursor to be used for the recordset. Use one of the following pre-defined Cursor Type constants.

This argument is ignored for DDM data sources.  

Lock Type  -  (Integer, Required)

Specifies the type of locks placed on records during editing. Use one of the following pre-defined Lock Type constants.  

This argument is ignored for DDM data sources.  

Command Type  -  (Integer, Required)

Specifies how the source argument should be interpreted. Use one of the following pre-defined Command Type constants.

This argument is ignored for DDM data sources.

Applies To

DB Connection object

See Also

DBConnect Method | Open Method | Disconnect Method | Close Method | Find Method | Move Method | AddNew Method | BeginTrans Method | CancelUpdate Method | CommitTrans Method | Delete Method | RollbackTrans Method | Seek Method | Update Method | ConnectionString property | DB Connection object


© 2004-2021 looksoftware. All rights reserved.