Leo_Polla_Psemata
Registered User.
- Local time
- Yesterday, 18:24
- Joined
- Mar 24, 2014
- Messages
- 364
The below code, performs the required action,
If i click on the yes/no field 'lockrec', the record gets locked, however,
if i close and reopen the form, then form edit is allowed.
How could i make it so the record remains locked.
If i click on the yes/no field 'lockrec', the record gets locked, however,
if i close and reopen the form, then form edit is allowed.
How could i make it so the record remains locked.
Code:
Private Sub LockRec_Click()
If Me.lockrec = True Then
Me.AllowEdits = False
Else
Me.AllowEdits = True
End If
End Sub