>

PID Property

Applies To

Group Object, User Object.

Description

Sets the personal identifier (PID) for either a group or a user account. This property setting is write-only for new objects not yet appended to a collection, and is not available for existing objects.

Settings

The setting is a string expression containing 4–20 alphanumeric characters. The data type is String.

Remarks

Set the PID property along with the Name property when you create a new Group object. Set the PID property along with the Name and Password properties when you create a new User object.

See Also

Name Property, Password Property.

Example

This example creates a new User object and sets the Name, PID, and Password properties for the new object before appending it to the Users collection.


Dim usrMyself As User, wrkDefault As Workspace
...
Set wrkDefault = DBEngine.Workspaces(0)   ' Get default workspace.
' Create, specify, and append new User object.
Set usrMyself = wrkDefault.CreateUser("Pat Smith")
usrMyself.PID = "abc123DEF456"
usrMyself.Password = "MySecret"
wrkDefault.Users.Append usrMyself