CreatePropery Method

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.

Syntax

[[Set] RetVal = ] object.CreatePropery([Name], [Value], [Inheritance])

The CreatePropery method syntax has these parts:

Part Description
object Required. A reference to an instance of the object.
RetVal Optional. A Propery 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.

Remarks

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.

Example

.......

 

See Also

Connection Object, Database Object, DBEngine Object, Field Object, Index Object, Propery Object, Properties Object, QueryDef Object, Recordset Object, Relation Object, TableDef Object, Workspace Object, Name Property, Append Method.