How do you set focus on a popup form when opening access?
IE: Double click on the access Icon, the popup form opens. I have to use the mouse to select the form before I can input data. If I select form, input data, then select a report (Command Button VAB close form, open report), the focus goes to the report. I then close the report and open the form (Command button VBA close report, open form), the focus goes to the form.
I am looking to get focus on the form
I tried using:Code:Public Sub Form_Load() DoCmd.RunCommand acCmdAppMinimize End Sub
Me.Myfield.SetFocus
Forms![MyForm]![MyField].SetFocus in the Form_Load and Form_Activate, Form_LostFocus, Form_GotFocus