Password Property

See Also    Example    Applies To

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

Syntax

VOIDSetPassword(LPCTSTR pstr);

Parameters

Type Example Description
LPCTSTR pstr A pointer to a string that contains up to 14 characters and can include any characters except the ASCII character 0 (null).

Remarks

Set the Password property along with the PID property when you create a new CdbUser object. This property is write-only for new objects not yet appended to a collection and is not available for existing objects.

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.