T
TonyB
Hi,
I'm trying to stop a user from moving away from a control on a form using
mouse/kb until something is entered in this field using VBA.
I'm trapping the Exit event for this control, and printing a message
explaining the field should be completed, but I'm unclear how to then put
focus back to the control before exiting the VBA. I tried to use
Me.Controlname.Setfocus after printing the msgbox, but the focus still moves
away from the control to the control which was clicked on once the msgbox
has been OK'd. This must be a common requirement. Can someone explain how to
do this ?
Thanks
Tony
I'm trying to stop a user from moving away from a control on a form using
mouse/kb until something is entered in this field using VBA.
I'm trapping the Exit event for this control, and printing a message
explaining the field should be completed, but I'm unclear how to then put
focus back to the control before exiting the VBA. I tried to use
Me.Controlname.Setfocus after printing the msgbox, but the focus still moves
away from the control to the control which was clicked on once the msgbox
has been OK'd. This must be a common requirement. Can someone explain how to
do this ?
Thanks
Tony