J
JAdams via AccessMonster.com
I have a checkbox in a single form and I need to remove the 'checkmark' based
on the click event on the following checkbox object 'ManagerSignature.
What I'm trying to achieve is as follows:
This check box is used to identify that the form has been signed by a manager.
What I need to happen is, if the current user CurrentUser( ) places a
checkmark in this object and the current user is not "Luella" then a message
box will pop up and say "You do not have permissions to sign". At that point
I need the program to CLEAR the checkmark from the 'ManagerSignature' check
box once the user clicks 'ok to the message box.
This is the code that I have built into the click event of the
ManagerSignature checkbox object.
Private Sub ManagerSignature_Click()
If Me.ManagerSignature = True And CurrentUser() <> "Luella" Then
MsgBox "You do not have permissions to sign"
Else
If Me.ManagerSignature = False Then
Me.ManagerSignatureLine = ""
End If
End If
Note: not sure of the code to clear the checkmark and where it should be
placed in the above code.
Thanks for you help
on the click event on the following checkbox object 'ManagerSignature.
What I'm trying to achieve is as follows:
This check box is used to identify that the form has been signed by a manager.
What I need to happen is, if the current user CurrentUser( ) places a
checkmark in this object and the current user is not "Luella" then a message
box will pop up and say "You do not have permissions to sign". At that point
I need the program to CLEAR the checkmark from the 'ManagerSignature' check
box once the user clicks 'ok to the message box.
This is the code that I have built into the click event of the
ManagerSignature checkbox object.
Private Sub ManagerSignature_Click()
If Me.ManagerSignature = True And CurrentUser() <> "Luella" Then
MsgBox "You do not have permissions to sign"
Else
If Me.ManagerSignature = False Then
Me.ManagerSignatureLine = ""
End If
End If
Note: not sure of the code to clear the checkmark and where it should be
placed in the above code.
Thanks for you help