ADODB Object
 
Syntax
 
commandobject.Name = string
string = commandobject.Name
 
Description
Sets or returns the string name of the Command object.
The Name property sets or returns a string that is the name of the Command object. You can use the name to uniquely identify individual Command objects. The value must be set before you call the ActiveConnection property.
 
The Name property is also used by the Field, Parameter, and Property objects.
 
The name can also be obtained from the Properties Collection.
See Also
Field.Name, Parameter.Name, Property.Name, Parameters.
Example
 
objConnection.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=ADOData.mdb"
objCommand.Name = "myProcedure"
Set objCommand.ActiveConnection = objConnection