Greetings. This might work for you.Put an unbound text somewhere on the
form, say txtFocus. Make the back color the same as your form. Set its
height to .0007. Then try
Private Sub
YourControl_onLostFocus
me.txtFocus.setfocus
me.yourcontrol.visible=false
Exit sub.
I use this for command buttons to disable controls, but I am not sure how a
lostfocus event behaves.
> This is just a minor question, but it's one that has me stumped:
>
[quoted text clipped - 8 lines]
>
> Thanks in advance!
JBHansen - 19 Feb 2007 19:19 GMT
Thanks Greg. We'll give that a try. I'm wondering, though - won't the user
then have to click on their intended destination field, since the focus will
go to txtFocus when they leave? So if they hit the tab button to leave the
initial control, or click on another control and the focus goes to txtFocus,
it might be a little distracting since they expected the cursor to go
somewhere else.
At any rate, we'll see how this works and adjust if necessary.
Thanks again.
> Greetings. This might work for you.Put an unbound text somewhere on the
> form, say txtFocus. Make the back color the same as your form. Set its
[quoted text clipped - 20 lines]
> >
> > Thanks in advance!