jonathanchye
Registered User.
- Local time
- Today, 06:53
- Joined
- Mar 8, 2011
- Messages
- 448
Hi all,
I would like to create a lock button on top of my form to lock and unlock editing to a specific record.
What I am doing now is add a toggle button and the following code for my form :
However this is not really working well. I can still alter fields in the form. Is there a way to prevent any editing at all for that current record ie all fields are locked and non clickable?
Thank you.
I would like to create a lock button on top of my form to lock and unlock editing to a specific record.
What I am doing now is add a toggle button and the following code for my form :
Code:
Private Sub tglLock_Click()
Me.AllowEdits = Not Me.AllowEdits
Me.tglLock.Caption = IIf(Me.AllowEdits, "Lock", "Unlock")
End Sub
However this is not really working well. I can still alter fields in the form. Is there a way to prevent any editing at all for that current record ie all fields are locked and non clickable?
Thank you.
Last edited: