W
wkaibigan
Hi
I have the following piece of code in the Switchboard that prevents a
non Admin user from opening the Administation form. For the most part
it works as it should but, every now and again, the form is opened.
Using debug.print, I checked the value returned by the
IsUserInGroupList function and it returns false as it should do. Does
anyone know of any reason why this behaviour is happening or any
possible fixes? Thanks.
If Not IsUserInGroupList(CurrentUser, "Admins") And rs![Argument] =
"frmStartupOptions" Then
MsgBox "Sorry but you don't have permission to view this form"
Else
DoCmd.OpenForm rs![Argument]
End If
I have the following piece of code in the Switchboard that prevents a
non Admin user from opening the Administation form. For the most part
it works as it should but, every now and again, the form is opened.
Using debug.print, I checked the value returned by the
IsUserInGroupList function and it returns false as it should do. Does
anyone know of any reason why this behaviour is happening or any
possible fixes? Thanks.
If Not IsUserInGroupList(CurrentUser, "Admins") And rs![Argument] =
"frmStartupOptions" Then
MsgBox "Sorry but you don't have permission to view this form"
Else
DoCmd.OpenForm rs![Argument]
End If