|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
programmatically delete user in groupI am trying to delete a user from the group but I always get a data type mismatch in - grpUsers.Users.Delete usr ? Dim db As Database Dim ws As Workspace Dim usr As User Dim grpUsers As Group Set ws = DBEngine.Workspaces(0) Set grpUsers = ws.Groups("Admins" Set usr = grpUsers.Users("userTwo") grpUsers.Users.Delete usr grpUsers.Users.Refresh What have I done wrong ? Thank you so much! Dim ws As Workspace
Dim grpUsers as Group Dim usr as User Set ws = DBEngine.Workspaces(0) Set grpUsers = ws.Groups("Admins") Set usr = grpUsers.CreateUser("userTwo") grpUsers.Users.Delete usr grpUsers.Users.Refresh -- Show quoteHide quoteJoan Wild Microsoft Access MVP "troubleD" <troub***@discussions.microsoft.com> wrote in message news:6E60B7D0-E11C-435E-AD6C-4602E613FF26@microsoft.com... > Hi, > > I am trying to delete a user from the group but I always > get a data type mismatch in - grpUsers.Users.Delete usr ? > > Dim db As Database > Dim ws As Workspace > Dim usr As User > Dim grpUsers As Group > > > Set ws = DBEngine.Workspaces(0) > Set grpUsers = ws.Groups("Admins" > Set usr = grpUsers.Users("userTwo") > > grpUsers.Users.Delete usr > grpUsers.Users.Refresh > > > What have I done wrong ? > > Thank you so much!
Security question
Security How do I undo security in ms access? User and Group Permissions Problem - Access 2000 track what users entered splitting a secured dbase in access 2003 Security problem Setup data security in Access 2003 IE6 calls 127.0.0.1, "cannot find website" user permissions in access 20003 |
|||||||||||||||||||||||