MDAC 2.5 SDK - ADOX


 

Append Method (Users)

See Also    Example    Applies To

Adds a new User object to the Users collection.

Syntax

Users.Append User[, Password]

Parameters

User   A Variant value that contains the User object to append or the name of the user to create and append.

Password   Optional. A String value that contains the password for the user. The Password parameter corresponds to the value specified by the ChangePassword method of a User object.

Remarks

The Users collection of a Catalog represents all the catalog's users. The Users collection for a Group represents only the users that have a membership in the specific group.

An error will occur if the provider does not support creating users.

Note   Before appending a User object to the Users collection of a Group object, a User object with the same Name as the one to be appended must already exist in the Users collection of the Catalog.