T
Tony F
I have created a database in Access 2000 and I wish to lock records using a
checkbox on a form. After reading previous questions & answers I tried the
following code in the checkbox's after update event.
Private Sub APPROVED_AfterUpdate()
If chkApproved = True Then
Me.AllowEdits = False
Me.AllowDeletions = False
Else
Me.AllowEdits = True
Me.AllowDeletions = True
End If
End Sub
"Approved" being the checkbox.
The equivalent code is also in the form's OnCurrent event.
It's not working, I can still edit the record via the form.
Can you tell me what else I need to do.
Thanks in advance.
checkbox on a form. After reading previous questions & answers I tried the
following code in the checkbox's after update event.
Private Sub APPROVED_AfterUpdate()
If chkApproved = True Then
Me.AllowEdits = False
Me.AllowDeletions = False
Else
Me.AllowEdits = True
Me.AllowDeletions = True
End If
End Sub
"Approved" being the checkbox.
The equivalent code is also in the form's OnCurrent event.
It's not working, I can still edit the record via the form.
Can you tell me what else I need to do.
Thanks in advance.