Creating a Group Account

To create a new group account from a VBA procedure, you need to open the ADOX Catalog object by specifying the connection to the appropriate database and use the Append method of the Catalog object's Groups collection to add a new group account.

The procedure in Hands-On 17-1 illustrates how to create a new group account named Masters in the secured database (SpecialDb.mdb) that you created in Custom Project 17-1. If the group with the specified name already exists, the error trap will detect it, and you will be notified with a message.

0 0

Post a comment