Hi,
I have a form that contains information that once entered, would not likely need to be edited. I would like to have a checkbox to enable/disable edits to the form to prevent accidental editing by, say, novice users.
I got the record to lock by adding the following code to a) the after update event of my enable_edit checkbox and b) the on_current event of the form.
If Me!ChkEnable_Edit.Value = True Then
Me.AllowEdits = True
Else
Me.AllowEdits = False
End If
The problem is that when the form is locked, so is my checkbox! Is there someway I can exclude the checkbox? Or do I need to individaully deal with each control on my form?
Also, if anyone has a better way to accomplish my ultimate goal then please advise. Thanks in advance.
Arch
I have a form that contains information that once entered, would not likely need to be edited. I would like to have a checkbox to enable/disable edits to the form to prevent accidental editing by, say, novice users.
I got the record to lock by adding the following code to a) the after update event of my enable_edit checkbox and b) the on_current event of the form.
If Me!ChkEnable_Edit.Value = True Then
Me.AllowEdits = True
Else
Me.AllowEdits = False
End If
The problem is that when the form is locked, so is my checkbox! Is there someway I can exclude the checkbox? Or do I need to individaully deal with each control on my form?
Also, if anyone has a better way to accomplish my ultimate goal then please advise. Thanks in advance.
Arch