K
Keith
I would like to open a form and set the focus to a particular control on that
form by double-clicking on a particular textbox on another form. The
following code, when put in the click event of a button, does the job just
fine. However, the same code in the double click event of a textbox, opens
the form as expected but leaves the focus (or returns focus) on the textbox
that was double-clicked.
Code:
DoCmd.OpenForm "frmStockLocation", acNormal, , "[JOB_NO]=" & Chr(34) &
Me.Job_Number & Chr(34)
Note that the on load event of the newly opened form includes the
appropriate code to set the focus to the correct control. My problem is
really just keeping focus on the newly opened form...I think.
Thanks,
Keith
form by double-clicking on a particular textbox on another form. The
following code, when put in the click event of a button, does the job just
fine. However, the same code in the double click event of a textbox, opens
the form as expected but leaves the focus (or returns focus) on the textbox
that was double-clicked.
Code:
DoCmd.OpenForm "frmStockLocation", acNormal, , "[JOB_NO]=" & Chr(34) &
Me.Job_Number & Chr(34)
Note that the on load event of the newly opened form includes the
appropriate code to set the focus to the correct control. My problem is
really just keeping focus on the newly opened form...I think.
Thanks,
Keith