D.5. The Parameters Collection

The Command object has a Parameters collection associated with it that contains all of the Parameters objects of the Command object. The actual Parameters collection does not contain any properties.

D.5.1. Methods of the Parameters Collection

MethodArgumentsDescription
AppendParameter objectUsed to add a Parameter object to the collection
RefreshNoneUpdates all of the Parameter objects in the collection with the latest information from the provider
DeleteIndexDeletes a Parameter object from the collection. The Index value is either the name or ordinal position of the Parameter in the collection

D.5.2. Properties of the Parameter Object

The following table lists the various properties of the Parameter objects in the Parameter collection.

PropertyData TypeDescription
NameStringSets or returns the name of the Parameter
Value (default property)VariantSets or returns the value of the Parameter
AttributesLongA read/write property that is the sum of any one or more ParameterAttributesEnum values. The default value is adParamSigned
DirectionParameterDirectionEnumIndicates if the Parameter represents an input parameter, an output parameter, an input and an output parameter, or if the parameter is the return value from a stored procedure
PrecisionByteIndicates the degree of precision for a Parameter object. This sets or returns a byte field to represent the maximum number of digits used to represent values
NumericScaleByteSets or returns a byte value that indicates ...

Get Access 2003 VBA Programmer's Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.