Go to Control / Set Focus

  • Thread starter Thread starter K
  • Start date Start date
K

K

Hello,

I have a form called frmMillMenu. It is a pop up menu (form) that you can
run different queries from. On Close how do I code it so it goes to a form
called frmRates and sets the focus on a field called ESTRATE? the frmRates is
a subform in a form called frmMain. Any help would be appreciated. I have
tried

Forms![frmMain]![frmRates].SetFocus
Forms![frmMain]![frmRates].FORM![ESTRATE].SetFocus

I get an error 2110 that it cannot move to the control ESTRATE?

Any help would be appreciated. Thanks Kyle.
 
Ops!! Got it. I had it set focus on a control that wasnt enabled. Sorry if I
wasted anyones time in reading this. Cheers, Kyle.
 
Back
Top