Re: Focus Issue
- From: "Bill" <billstanton@xxxxxxxx>
- Date: Sat, 29 Sep 2007 22:18:41 -0700
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
"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
.
- Follow-Ups:
- Re: Focus Issue
- From: Bob Quintal
- Re: Focus Issue
- References:
- Focus Issue
- From: Bill
- Re: Focus Issue
- From: Bob Quintal
- Focus Issue
- Prev by Date: Re: sql limited by parameter
- Next by Date: Re: subform to subform assistance
- Previous by thread: Re: Focus Issue
- Next by thread: Re: Focus Issue
- Index(es):