SetFocus very slow during form open

M

Ming

We are using Me.KeyWord.SetFocus in one of our forms during form open event.
"KeyWord" is text box on that form. We have noticied that excuting this line
of code takes about 2 minutes during form open process.

No idea why. I need some help.
 
K

Ken Snell [MVP]

A form's Open event is too soon to use a SetFocus step. This is because
many/most of the controls on the form are not instantiated yet (don't exist
yet) in the form's Open event timeframe.

Move the code step to the form's Load event.
 
Top