To set focus to an object in a different page on a multipage object you need to write two lines of code.
Using an example of a multipage called MULTIPAGE1 and a textbox control called TXTOBJECT. You want to switch to the second page and set focus to the TXTOBJECT. You would use the following syntax.
Code:
Me.Multipage1.Value = 1
Me.txtObject.SetFocus
The first line changes the multipage forms focus to page 2 and the second is your standard object setfocus syntax.
Remember that page numbers begin at 0 unless base option is changed from 0 to 1.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.