Name Property

The Name property on a Command object sets or returns a string value indicating the name of the object. The Name property on a Field or Property returns a string value indicating the name of the object.

currentName = command.Name
command.Name = newName
 

Remarks

The Name property is used to assign a name to or retrieve the name of a Command, Field, or Property object. This value is read/write on a Command object and read-only on a Property or Field object. Note that the Name property on a Command object cannot be assigned (set) using the OLE DB Provider for AS/400 and VSAM.

The Name property of an object can be retrieved by an ordinal reference, after which you can refer to the object directly by name. For example, if recordset.Properties(20).Name yields Updatability, you can subsequently refer to this property as recordset.Properties("Updatability").