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:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

code when backend is SQL server 6
Using Max 2
Logon 5
Using variabel in my connectionstring 4
2003 and vista 3
File open 2
Only 2 decimals 10
when start 2

Back
Top