S
studlength
Hi. I have a form that I am trying to protect from accidental changes.
I used the code from Allen Browne's tip sheet "Locking bound controls"
at http://allenbrowne.com/ser-56.html. It works perfectly.
However, I would prefer each individual record to always stay locked
unless a user clicks on the cmdLock button. I would also like for the
record to lock back automatically when a user exits the record.
I accomplished this by putting the following line in the OnCurrent
property instead of the OnLoad property:
=LockBoundControls ([Form],True)
This works great, too.
Now to the problem. When a new record is created, it is automatically
locked. I would like for new records to be unlocked and stay unlocked
until the user exits it. Can someone please suggest how to do this?
I used the code from Allen Browne's tip sheet "Locking bound controls"
at http://allenbrowne.com/ser-56.html. It works perfectly.
However, I would prefer each individual record to always stay locked
unless a user clicks on the cmdLock button. I would also like for the
record to lock back automatically when a user exits the record.
I accomplished this by putting the following line in the OnCurrent
property instead of the OnLoad property:
=LockBoundControls ([Form],True)
This works great, too.
Now to the problem. When a new record is created, it is automatically
locked. I would like for new records to be unlocked and stay unlocked
until the user exits it. Can someone please suggest how to do this?