I use the following code to lock the record if the checkbox is checked. (In continuous form)
If not Me.NewRecord then
Me.Dirty = False
Me!Parts.Locked = Me!SaveCheck
Me!Employee.Locked = Me!SaveCheck
Me![start date].locked = Me!SaveCheck
end if
This works great except ONLY if there is a the SaveCheck box is checked on the LAST entered record. If that is the case, then it will not allow me to enter a new record. If that checkbox (the Last one only) is not checked, I can enter in information into a new record. If it is checked, then the new record acts as if it is locked.
Actually I just messed with it some more and now it seems like if I click on any of the current records where the fields are locked, then the whole field becomes locked. Sometimes, if I double click the checkbox, it will let me start entering data again.
This just doesn't make sense to me. I would appreciate any help.
Thanks,
naoaja
If not Me.NewRecord then
Me.Dirty = False
Me!Parts.Locked = Me!SaveCheck
Me!Employee.Locked = Me!SaveCheck
Me![start date].locked = Me!SaveCheck
end if
This works great except ONLY if there is a the SaveCheck box is checked on the LAST entered record. If that is the case, then it will not allow me to enter a new record. If that checkbox (the Last one only) is not checked, I can enter in information into a new record. If it is checked, then the new record acts as if it is locked.
Actually I just messed with it some more and now it seems like if I click on any of the current records where the fields are locked, then the whole field becomes locked. Sometimes, if I double click the checkbox, it will let me start entering data again.
This just doesn't make sense to me. I would appreciate any help.
Thanks,
naoaja