Hello, I have a problem that im struggling to fix.
I have a database and the form is set to not allow editing on the clients page.
I would like a button so I could click to enable / disable editing.
For example when I open the form you cannot edit the record. I click the button and it now allows me to edit the record. When im finished I click the button to disable editing.
Here is my code I tried but with no success.
If Me.AllowEdits = False Then
Me.AllowEdits = True
Me.Edit.Caption = "Allow Editing"
Else
Me.AllowEdits = False
Me.Edit.Caption = "No Editing"
End If
The error message is as follows.
COMPILE ERROR
METHOD OR DATA MEMBER NOT FOUND
Any help would be appreciated.
I have a database and the form is set to not allow editing on the clients page.
I would like a button so I could click to enable / disable editing.
For example when I open the form you cannot edit the record. I click the button and it now allows me to edit the record. When im finished I click the button to disable editing.
Here is my code I tried but with no success.
If Me.AllowEdits = False Then
Me.AllowEdits = True
Me.Edit.Caption = "Allow Editing"
Else
Me.AllowEdits = False
Me.Edit.Caption = "No Editing"
End If
The error message is as follows.
COMPILE ERROR
METHOD OR DATA MEMBER NOT FOUND
Any help would be appreciated.