G
Guest
I put 2 Labels at the bottom of my form, the first named "EditButton" with
text "EDIT" and the second named "SaveButton" with text "SAVE". The form's
Data Entry property is set to "No". I put these procedures in the On_Click
Event for these buttons:
Private Sub EditButton_Click()
Me.AllowEdits = True
End Sub
Private Sub SaveButton_Click()
Me.AllowEdits = False
End Sub
(I've got other actions occuring, but they aren't where my problem is.)
When the form opens, it can't be edited. When the "Edit" button is clicked,
the form then can be edited. But when the "Save" button is clicked, the form
can still be edited - the "Me.AllowEdits = False" statement appears to "not
work".
Anyone see what's wrong? Thanks - John D
text "EDIT" and the second named "SaveButton" with text "SAVE". The form's
Data Entry property is set to "No". I put these procedures in the On_Click
Event for these buttons:
Private Sub EditButton_Click()
Me.AllowEdits = True
End Sub
Private Sub SaveButton_Click()
Me.AllowEdits = False
End Sub
(I've got other actions occuring, but they aren't where my problem is.)
When the form opens, it can't be edited. When the "Edit" button is clicked,
the form then can be edited. But when the "Save" button is clicked, the form
can still be edited - the "Me.AllowEdits = False" statement appears to "not
work".
Anyone see what's wrong? Thanks - John D