I have a form with 2 pages. In the second form is a list box that won't scroll unless the 2nd page has the focus. I have tried using the DoCmd.GoToPage 2 but keep getting the error "runtime error 2046, the action or command 'GoToPage' isn't available now". I have tried putting in the location reference, DoCmd.GoToPage 2, 0, 4.7917, with no change.
I am putting this in the gotfocus event of the listbox. Only the listbox gives me a problem, combo boxes, check boxes, date formated fields work fine. The list box only works with a page change to the page it's on. I can even tab through the whole first form and get to the 2nd page and then the listbox works.
Do i have to reference the pages break by name explicitly? I have tried this a few ways but without any luck.
Any ideas?
I am putting this in the gotfocus event of the listbox. Only the listbox gives me a problem, combo boxes, check boxes, date formated fields work fine. The list box only works with a page change to the page it's on. I can even tab through the whole first form and get to the 2nd page and then the listbox works.
Do i have to reference the pages break by name explicitly? I have tried this a few ways but without any luck.
Any ideas?