Creates a new Propery object, that describes a user-defined property of an object.
Applies to objects: Connection, Database, DBEngine, Field, Index, QueryDef, Recordset, Relation, TableDef, Workspace.
[[Set] RetVal = ] object.CreateProperty([Name], [Value], [Inheritance]) |
The CreateProperty method syntax has these parts:
Part | Description |
object | Required. A reference to an instance of the object. |
RetVal | Optional. A Property type variable. |
Name | Optional. A String type variable. The name of the property being created. |
Value | Optional. The value of the property being created. |
Inheritance | Optional. A Boolean type variable. Defines, whether the property is inherited by child object. |
If the Inheritance flag is set, this property will appear in all child objects of the object.
After creating the property you need to add it to the Properties collection by using the Append method.
....... |