I have a main form frmMain and a subform subFrm. On the on-Current event of the subform, I use:
Me.AllowEdits = True
Me.AllowDeletions = True
so that all the records are locked. To unlock, I have created two command buttons, one to unlock the records:
Me.AllowEdits = False
Me.AllowDeletions = False
and the second to lock the records again.
What I do not like, is that, if I unlock a record and do the changes to the fields and then save, the records are locked automatically. So if I want to change many records, I have to keep clicking the "Unlock" button after each save.
Any hints how to unlock once and then lock the records after I finish editing ?
Rgds
Me.AllowEdits = True
Me.AllowDeletions = True
so that all the records are locked. To unlock, I have created two command buttons, one to unlock the records:
Me.AllowEdits = False
Me.AllowDeletions = False
and the second to lock the records again.
What I do not like, is that, if I unlock a record and do the changes to the fields and then save, the records are locked automatically. So if I want to change many records, I have to keep clicking the "Unlock" button after each save.
Any hints how to unlock once and then lock the records after I finish editing ?
Rgds