go to control

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

Guest

I have a series of nested tabs on forms. I am using

Set ctl = Forms!systemForm!Page2
DoCmd.GoToControl ctl.name

which works fine but now i want to go to page22 on form peopleGrid within
page2
i tried

Set ctl = Forms!systemForm!Page2!peopleGrid!page22
DoCmd.GoToControl ctl.name

but get
object doesn't support this object or method. I am trying to go from a
record on one tab and move to another tab to do a find based on an id on the
first tab

Help please
 
Try to first go to Page2
Set ctl = Forms!systemForm!Page2
DoCmd.GoToControl ctl.name

then to page22 subform:

Set ctl = Forms!systemForm!peopleGrid
DoCmd.GoToControl ctl.name

then to page22

Set ctl = Forms!systemForm!peopleGrid.form!Page22
DoCmd.GoToControl ctl.name
 
Back
Top