Re: Focus Issue
- From: Bob Quintal <rquintal@xxxxxxxxxxxxx>
- Date: 30 Sep 2007 11:14:08 GMT
"Bill" <billstanton@xxxxxxxx> wrote in news:_p-
dnVSJYo8vrGLbnZ2dnUVZ_jWdnZ2d@xxxxxxxxxxxx:
Bob,An explanatory comment in the form's code module helps remember
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
particiularities of implementation.
has
"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
buttonreceived focus and done something, because the code under the
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
.
- Follow-Ups:
- Re: Focus Issue
- From: Bill
- Re: Focus Issue
- References:
- Focus Issue
- From: Bill
- Re: Focus Issue
- From: Bob Quintal
- Re: Focus Issue
- From: Bill
- Focus Issue
- Prev by Date: Re: help required in designing an inventory form
- Next by Date: Re: Prediction..?
- Previous by thread: Re: Focus Issue
- Next by thread: Re: Focus Issue
- Index(es):