I have a DB that opens to my Log In Form and Minimizes the Access Program.
I need the focus to go to the Log In Form TextBox TxtUserName
This is what U have:
I have tried various versions and adding the set focus to the actual TextBox - no luckCode:Private Sub Form_Load() DoCmd.RunCommand acCmdAppMinimize Forms("0Frm_LogIn").SetFocus End Sub
The TabIndex for the TxtUserName is 0 - so it should be first