Hello !

Does anyone have examples of how to setup users with specific rights when building a database with the ADOX objects ?

Code:
Dim usr As ADOX.User
Set usr = New ADOX.User
usr.Name = "ADMINISTARTOR"
usr.SetPermissions "?????", adPermObjDatabase, adAccessSet, adRightFull
Where I wrote question marks is where I get lost... the help files tels you it has to be the object name the rights will be granted to. I tried, the table object, or the catalog object I am using, nothing works...

Any leads, anyone ?

Thanks !