Hi Guys & Gals
I was wondering if it is possible to limit access to buttons and other areas on a database without using the built in UserGroups of Access.
I have a script that requires a user name and password and was wondering at this point whether a person could limit things like password changing or user deletion.
After running through many many messages in this forum I found something which I tried to modify:
code:
Private Sub AccessLevel()
If InStr(AccessLevel(), "Administration") > 0 Then
Me.[Forms]![frmentry]![Password Maintenance Button] = True
Else
Me.[Forms]![frmentry]![Password Maintenance Button] = False
End If
End Sub
This code however seems to do nothing. When I walk through the debug code it goes through it but nothing happens no matter who is logged on.
My Logon script passes the following:
RealName, UserName, Password, AccessLevel when its looked up in the table. Can this be done?
In the table the following AccessLevels are: Administration, Maintenance, & User.
Thanks for any help
I was wondering if it is possible to limit access to buttons and other areas on a database without using the built in UserGroups of Access.
I have a script that requires a user name and password and was wondering at this point whether a person could limit things like password changing or user deletion.
After running through many many messages in this forum I found something which I tried to modify:
code:
Private Sub AccessLevel()
If InStr(AccessLevel(), "Administration") > 0 Then
Me.[Forms]![frmentry]![Password Maintenance Button] = True
Else
Me.[Forms]![frmentry]![Password Maintenance Button] = False
End If
End Sub
This code however seems to do nothing. When I walk through the debug code it goes through it but nothing happens no matter who is logged on.
My Logon script passes the following:
RealName, UserName, Password, AccessLevel when its looked up in the table. Can this be done?
In the table the following AccessLevels are: Administration, Maintenance, & User.
Thanks for any help