Calling UserGroups (1 Viewer)

Bigmo2u

Registered User.
Local time
Today, 03:36
Joined
Nov 29, 2005
Messages
200
How do you call the UserGroups like you call the CurrentUser() in VBA?
 

LPurvis

AWF VIP
Local time
Today, 09:36
Joined
Jun 16, 2008
Messages
1,269
As there could be several...

Code:
Function fCurrentUserGroups(Optional strDelim = ";")
    Dim grp As DAO.Group
    For Each grp In DBEngine.Workspaces(0).Users(CurrentUser).Groups
        fCurrentUserGroups = fCurrentUserGroups & strDelim & grp.Name
    Next
    
    fCurrentUserGroups = Mid(fCurrentUserGroups, Len(strDelim) + 1)
    
End Function
 

Bigmo2u

Registered User.
Local time
Today, 03:36
Joined
Nov 29, 2005
Messages
200
LPurvis - Thank you, I really appreciate the code....
 

Users who are viewing this thread

Top Bottom