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.
Private Sub LockRec_Click()
If Me.lockrec = True Then...