MULTIPAGE - HOW DO I SET FOCUS TO TEXTBOX ON FIRST PAGE OF CONTROL


Posted by Montgomery on September 07, 2001 7:57 AM

Hello guys & gals!!
I'm having some trouble setting focus to my textbox on the first page of my multipage control. I can update my worksheet with my form, but when i click on "add another record" i get an error

"can't move focus to the control because it is invisible, not enable, or of a type that does not accept the focus."

the code i have for my textbox is TextBox1.SetFocus.

Can anyone offer any assistance?

Faye

Posted by Juan Pablo on September 07, 2001 8:20 AM

Re: Multipage set focus

You have to acces first the page (In your case, page 1), this can be done like this:

MultiPage1.Value=0
TextBox1.SetFocus

Hope this helps

Juan Pablo



Posted by Montgomery on September 10, 2001 4:45 AM

Re: Multipage set focus - It works Juan, Now why didn't I think of that

Thanks for the answer!!!!