G
Gary Pollard
Access 2000
How do I get user name and workgroup name.
This code worked in Access 97 but Access 2000 object to
Dim grp As Group, usr As User and
Dim strMessage As String
Function MyGroup() As String
Dim grp As Group, usr As User
Dim strMessage As String
Set usr = DBEngine.Workspaces(0).Users(CurrentUser)
For Each grp In usr.Groups
Select Case grp.Name
Case "prod-input"
------- various cases and code ---------
End Select
Next
End Function
Any help appreciated
How do I get user name and workgroup name.
This code worked in Access 97 but Access 2000 object to
Dim grp As Group, usr As User and
Dim strMessage As String
Function MyGroup() As String
Dim grp As Group, usr As User
Dim strMessage As String
Set usr = DBEngine.Workspaces(0).Users(CurrentUser)
For Each grp In usr.Groups
Select Case grp.Name
Case "prod-input"
------- various cases and code ---------
End Select
Next
End Function
Any help appreciated