Which group is the user part of?

  • Thread starter Thread starter incog
  • Start date Start date
I

incog

Guest
Hi, is there a function in ms access vbscript that returns the group the current user is part of. In my access database I need to alter some stuff if the user has admin priviliges. Thanks beforehand.
 
CurrentUser() will tell you who the user is based on their workgroup. You should know which users have admin privileges. If your db is properly secured then nobody should have admin privileges but the programmer.
 
Code:
For ix = 0 to Users(CurrentUser()).Groups.Count - 1
    MsgBox Users(CurrentUser()).Groups(ix).Name
Next
 

Users who are viewing this thread

Back
Top Bottom