AccessObjectProperties.Add method (Access)

Use the Add method to add a new property as an AccessObjectProperty object to the AccessObjectProperties collection of an AccessObject object.

Syntax

expression.Add (PropertyName, Value)

expression A variable that represents an AccessObjectProperties object.

Parameters

Name Required/Optional Data type Description
PropertyName Required String A string expression that's the name of the new property.
Value Required Variant A Variant value corresponding to the option setting. The setting of the value argument depends on the possible settings for a particular option. Can be a constant or a string value.

Remarks

Use the Remove method of the AccessObjectProperties collection to delete an existing property.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.