|
Using the User Roster to Check for Users in a DatabaseProvided by : FMS Development TeamVersion 4.0 of the OLE DB Provider for Microsoft Jet added support for several new schema rowsets that were not previously available. The most notable of these is the User Roster schema rowset. The user roster is exposed as a provider-specific schema rowset in the Jet 4 OLE DB provider. Since provider-specific schemas are not listed in ADO's type library for schema rowsets, you must use a GUID to reference the schema like this one.
The 4 things that can be returned for
this schema are:
Below is an example Function of the User Roster code that checks which users are in a database. You should be able to cut and paste everything from the "Begin Function" line to the "End Example" line into a new module and have it work for you. Required References: Microsoft ActiveX Data Objects 2.1 LibrarySample Code |