>
| Part | Description |
| variable | A variable declared as an object data type User. |
| object | The variable name of the Group or Workspace object you want to use to create the new User object. |
| name | A String variable that uniquely names the new User object. See the Name property for details on valid User names. |
| pid | A String variable containing the PID of a user account. The identifier must contain from 4 to 20 alphanumeric characters. See the PID property for more information on valid personal identifiers. |
| password | A String variable containing the password for the new User object. The password can be up to 14 characters long and can include any characters except the ASCII character 0 (null). See the Password property for more information on valid passwords. |
Dim usrPartner As User Dim strManagersPID As String
strManagersPID = "1122aabb"
' Create new user account.
Set usrPartner = DBEngine.Workspaces(0).CreateUser("Partner", _
strManagersPID)
' Set other properties of usrPartner.
usrPartner.Password = "NewPassword"
' Save user account definition by appending it to Users collection.
DBEngine.Workspaces(0).Users.Append usrPartner
' Re-create usrPartner and append to Groups collection
Set usrPartner = DBEngine.Workspaces(0).CreateUser("Partner")
DBEngine.Workspaces(0).Groups(0).Users.Append usrPartner