I have a Database that Opens to a Form.
The On Open event has
Code:
DoCmd.RunCommand acCmdAppMinimize
The form has 2 textboxes (For Authentication) I want TextBox TxtUsername to be the focus so user can just start typing.
What currently happens: The Minimize command works - but the form is hidden behind whatever App the user has open (outlook IE etc...)
If the user has anything open the form (Pop up & Modal) shows but it is not Active Or does not have the focus.
I added :
Code:
Forms("0Frm_LogIn").SetFocus
Me.TxtUserName.SetFocus
In the Open Event - then moved it to the Load event (when that did not work)
I have also tried to add a Splash form that has an On Open event to minimize Application and On timer event that Opens form 0Frm_Login - leaving the On Load events It works right if I am in Access. But if I start the Database directly it does not work.
have a thread n the Access forum - prior to trying the Splash screen - and it is probably better in the Forms folder.