Password Property

Applies To

User object.

Description

Sets the password for a user account (Microsoft Jet workspaces only).

Settings

The setting is a String that can be up to 14 characters long and can include any characters except the ASCII character 0 (null). This property setting is write-only for new objects not yet appended to a collection, and is not available for existing objects.

Remarks

Set the Password property along with the PID property when you create a new User object.

Use the NewPassword method to change the Password property setting for an existing User object. To clear a password, set the newpassword argument of the NewPassword method to a zero-length string (" ").

Passwords are case-sensitive.

Note If you don't have access permission, you can't change the password of any other user.

See Also

NewPassword method, Permissions property, PID property, UserName property.

Example

See the CreateUser method example.