hmmm, i tested the code before posting, so i know it does work. i think you
did add it incorrectly, but i'm trying to figure out how.
Also, this event that I add doesn't show on the list of all events
when I right-click on the text-field control of NetID and look at the
properties.
that seems impossible. this is a text box on a form? and you opened the form
in design view? right clicked the control, selected Properties, and looked
at the Events tab? and there is no On Enter event listed?
if you added the procedure to the form's module, correcting the name of the
procedure to match your control name, then in the Properties box for that
control you should see the On Enter line with
[Event Procedure]
if you see the On Enter line, but it's empty, then click on it. click the
"down arrow" and select Event Procedure. then click the Build button (...)
at the right and you will go directly to that procedure in the form module.
post back with results. we need to understand what's going on here before we
tackle another process.
guaj1818 said:
Hi,
I added the event that you suggested but it doesn't seem to have any
effect on the form. I am still able to modify the NetID text field in
my form.
I just copied the procedure and modified my control name to NetID.
Also, this event that I add doesn't show on the list of all events
when I right-click on the text-field control of NetID and look at the
properties.
-----------------------------------------
Private Sub NetID_Enter()
Screen.ActiveControl.Locked = Not IsNull(Screen.ActiveControl)
End Sub
-----------------------------------------
Perhaps I have done something wrong?
But the other way of locking a record that you wrote about also sounds
interesting. How can I use that method in my form?
By the way, I am using MS Access 2002.
Thanks.
"tina" <
[email protected]> wrote in message