B
Bob Quintal
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