Groups Collection

             

A Groups collection contains all stored Group objects of a Workspace or user account (Microsoft Jet workspaces only).

objworks

parlowerobjuser

parchildparsharecolgroup

spacespaceparchildobjgroup

spacespacespaceparchildcoluser

Remarks

You can append an existing Group object to the Groups collection in a User object to establish membership of a user account in that Group object. Alternatively, you can append a User object to the Users collection in a Group object to give a user account the global permissions of that group. In either case, the existing Group object must already be a member of the Groups collection of the current Workspace object. If you use a Groups or Users collection other than the one to which you just appended an object, you may need to use the Refresh method to refresh the collection with current information from the database.

To refer to a Group object in a collection by its ordinal number or by its Name property setting, use any of the following syntax forms:

Groups(0)

Groups("name")

Groups![name]