>

Users Collection

Description

A Users collection contains all stored User objects of a Workspace or Group object.

Remarks

You can append an existing User object to the Users collection of a Group object to give a user account the access permissions for that Group object. Alternatively, you can append the Group object to the Groups collection in a User object to establish membership of the user account in that group. If you use a Users or Groups collection other than the one to which you just appended an object, you may need to use the Refresh method.

The Microsoft Jet database engine predefines two User objects named Admin and Guest. The user Admin is a member of the Group object named Admins and Users; the user Guest is a member only of the Group object named Guests.

You can refer to any other User object that you create and append to a Users collection by its Name property setting using this syntax:

Workspaces(n)|Group.Users("name")

Properties

Count Property.

Methods

Append Method, Delete Method, Refresh Method.

See Also

Appendix, "Data Access Object Hierarchy."

Specifics (Microsoft Access)

See the User object specifics (Microsoft Access).

Example

See the Group object example.

Example (Microsoft Access)

See the User object example (Microsoft Access).