I am attempting to load a custom menu bar when any non-admin user logs in. I have tried several things but I am not sure what I am missing right now. Here is the code I am using but it loads the CustomMenuBar for everyone.
Any help would be appreciated.
Any help would be appreciated.
Code:
<html>
<head>
<title>Page</title>
</head>
<body>
Private Sub Form_Load()
'Maximize Access upon startup
DoCmd.Maximize
If UserInGroup = "Admins" Then
Me.MenuBar = ""
Else
Me.MenuBar = "CustomMenuBar"
End If
End Sub
</body>
</html>