Hi.
I am currently working on a form that I need to prevent changes to
after data has been input.
There are a series of tick boxes on the form, and when each one of
these is ticked it spawns the current date and time in another field. I
want the form to then lock both the tick box and the field that now has
the date in it, so that it can no longer be unticked or the date
manually altered.
I have tried using the following code to do this, and it does lock the
fields after the tick box has been used, but it also locks all the
other tick boxes that also have the same code attached to them. I
obviously want the locking to be independant, so that the locking of
one set doesn't affect the others. The code I have tried to use is
here, and is attached to each of the tick boxes.
Private Sub
Screen.ActiveControl.Locked = Not IsNull(ScreenActiveControl)
End Sub
Does anybody know what / where I am going wrong?
Thanks