In the "Dim grp as DAO.Group" line of the following routine I'm getting a VB Compile Error: "User-defined type not defined"
----------------------------------------------------------
Private Function UserIsInGroup(UserName As String, GroupName As String) As Boolean
Dim grp As DAO.Group
On Error Resume Next
Set grp = DBEngine(0).Users(UserName).Groups(GroupName)
UserIsInGroup = Not grp Is Nothing
Set grp = Nothing
End Function
----------------------------------------------------------
The full module can be found here:
Any help is greatly appreciated.
Best Wishes,
Steve Foote
Savannah Georgia
----------------------------------------------------------
Private Function UserIsInGroup(UserName As String, GroupName As String) As Boolean
Dim grp As DAO.Group
On Error Resume Next
Set grp = DBEngine(0).Users(UserName).Groups(GroupName)
UserIsInGroup = Not grp Is Nothing
Set grp = Nothing
End Function
----------------------------------------------------------
The full module can be found here:
Any help is greatly appreciated.
Best Wishes,
Steve Foote
Savannah Georgia