go to control

J

judith

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
 
A

Alex Dybenko

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top