go to control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What is wrong with this syntax? I get an error of wrong data type for one of
the arguments.

DoCmd.GoToControl Me.frmPatientPhone.Form.PhoneTypeID

Thanks
 
It depends on where the focus currently is.

If it's on the parent form or on a different subform, it's necessary to set
focus to the desired subform first.

In other words, you'd need

Me.frmPatientPhone.SetFocus
Me.frmPatientPhone.Form.PhoneTypeID.SetFocus
 
Back
Top