Re: Focus Issue



Oh! You can be sure I did that.......ALWAYS!

"Bob Quintal" <rquintal@xxxxxxxxxxxxx> wrote in message
news:Xns99BB529AB7DEBQuintal@xxxxxxxxxxxxxxxx
"Bill" <billstanton@xxxxxxxx> wrote in news:_p-
dnVSJYo8vrGLbnZ2dnUVZ_jWdnZ2d@xxxxxxxxxxxx:

Bob,
Your suggestion was the one I followed. These little
tidbits are always worth remembering, sort of like
when one has invisible controls on a report so that
the query fields can be referenced in code.
Thanks,
Bill

An explanatory comment in the form's code module helps remember
particiularities of implementation.




"Bob Quintal" <rquintal@xxxxxxxxxxxxx> wrote in message
news:Xns99BA8731A7E39BQuintal@xxxxxxxxxxxxxxxx
"Bill" <billstanton@xxxxxxxx> wrote in
news:voadnY66FdAtH2PbnZ2dnUVZ_saknZ2d@xxxxxxxxxxxx:

I need to set a command button's visibility to
FALSE when it receives the focus.

No, you need to set the button's visibility to False, AFTER it
has
received focus and done something, because the code under the
button
won't ever get executed if you make it not visible during the
OnGetFocus Event.

So, I first
need to move the focus to some innocuous
control, most desirably the form itself. I've
tried Me.Form.SetFocus, but that doesn't
seem to have any affect. What's the expression
to move the focus to the form?

The form cannot receive focus if there is any control on the form
which can get focus. One workaround is an empty textbox, in the
upper left corner of the form, with 0 width and 0 height.


Thanks,
Bill






--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com







--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com



.