
MS Access can not change focus to control button
Try placing the marco in the OnActivate, rather than the OnOpen.
It is failing, because the OnOpen runs before the control is acutally
visible.
--
David W. Forest
LAN Specialist
Information Technologies
Lear Corporation - Ford Division
SBN Level 2
http://www.concentric.net/~dforest/
If you're not scared, you don't understand.
Quote:
> Hi everyone,
> I am new to Access and VB and am plugging along mostly with macros until
I
> feel more comfortible with VB. I have a problem moving the focus to a
> button on a form I just opened with a macro. The error message I get is:
> MS Access can not move focus to control button
> * Control maybe can not receive focus like label
> * Control visible property set to no
> * Control enabled property set to no
> None of these seem to be the problem. In fact if the user presses any key
> or the mouse on the form after it is opened, then the macro will set the
> focus on the button.
> Does anyone know how I might automatically open a file and set the focus
on
> this button?
> I tried using the Select Object to the form first and it did not help.
> Thank you in advance.
> Dennis Becker