Calling UserGroups

Bigmo2u

Registered User.
Local time
Today, 12:38
Joined
Nov 29, 2005
Messages
200
How do you call the UserGroups like you call the CurrentUser() in VBA?
 
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
 
LPurvis - Thank you, I really appreciate the code....
 

Users who are viewing this thread

Back
Top Bottom