Bean Machine
Member
- Local time
- Yesterday, 21:32
- Joined
- Feb 6, 2020
- Messages
- 102
Hi everyone. This is a super generic and frankly probably a very dumb question but I'll ask it for the sake of finding out. I have a button that enables editing on a form and when clicked the text within will change to "Editing". What I would like is once a user is done editing, for them to click the button and have it return to it's default state again. Here is my code:
Private Sub btn_Edit_Click()
Me.AllowEdits = True
Me.btn_Edit.Caption = "Editing"
End Sub
Private Sub Form_Load()
Me.AllowEdits = False
Me.btn_Edit.Caption = "Edit"
End Sub
Fairly simple function, I just don't know how to get it to revert to it's initial state (that is to say what it was on form load). Thanks for any help provided!
Private Sub btn_Edit_Click()
Me.AllowEdits = True
Me.btn_Edit.Caption = "Editing"
End Sub
Private Sub Form_Load()
Me.AllowEdits = False
Me.btn_Edit.Caption = "Edit"
End Sub
Fairly simple function, I just don't know how to get it to revert to it's initial state (that is to say what it was on form load). Thanks for any help provided!