ADO » Command » Name

commandobject.Name = string
string = commandobject.Name

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.


objConnection.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=ADOData.mdb"
objCommand.Name = "GuruProcedure"
Set objCommand.ActiveConnection = objConnection

See Also: