ADODB Object
 
Syntax
 
string = parameterobject.Name
Name = string
 
Description
Sets or returns a string that is the name of the Parameter object.
 
The Name property sets or returns a string that is the name of the Parameter object.
 
This property is read/write for Parameter objects that have not been appended to the Parameters Collection. However, the Name property becomes read-only after a Parameter object is appended to the Parameters Collection. Interestingly, names do not have to be unique in the Parameters Collection.
 
You can also set the name using the CreateParameter method of the Command object.
See Also
Command.Name, Field.Name, Property.Name.
Example
 
For Each objParameter In objCommand.Parameters
   Debug.Print objParameter.Name
Next