Hi,
I have a command button in which I have turned the AllowEdits to No.
My code is:
Private Sub Command13_Click()
If Me.AllowEdits = True Then
Me.AllowEdits = False
Me.Command13.Caption = "Edit Off"
Else
Me.AllowEdits = True
Me.Command13.Caption = "Edit On"
End If
End Sub
When I open the form in form view, edits is off, I press the button and the button then says 'edit on' and I can edit my data, I finally press the button again it says 'edit off' but I cans till edit data.
Am I missing something in the code?
Regards
Dom
I have a command button in which I have turned the AllowEdits to No.
My code is:
Private Sub Command13_Click()
If Me.AllowEdits = True Then
Me.AllowEdits = False
Me.Command13.Caption = "Edit Off"
Else
Me.AllowEdits = True
Me.Command13.Caption = "Edit On"
End If
End Sub
When I open the form in form view, edits is off, I press the button and the button then says 'edit on' and I can edit my data, I finally press the button again it says 'edit off' but I cans till edit data.
Am I missing something in the code?
Regards
Dom