Get username

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I can make users into access and make groups
but how can i see the name on the user?

Alvin
 
Thanks
its working
Maybe you also know if i can get the group name
like if the user is admin ot user

Alvin


"Dirk" skrev:
 
Yes but in that case we are speaking of groups rather than one group. A
function to get a user's groups by user name would be:

Function getGroupsByUsername(ByVal strUserName As String) As Collection
Dim objGroup As DAO.Group
For Each objGroup In DBEngine(0).Groups
getGroupsByUsername.Add objGroup.Name
Next objGroup
End Function

"alvin Kuiper" schreef:
 
Thanks
its working
Alvin


"Dirk" skrev:
Yes but in that case we are speaking of groups rather than one group. A
function to get a user's groups by user name would be:

Function getGroupsByUsername(ByVal strUserName As String) As Collection
Dim objGroup As DAO.Group
For Each objGroup In DBEngine(0).Groups
getGroupsByUsername.Add objGroup.Name
Next objGroup
End Function

"alvin Kuiper" schreef:
 
Back
Top