Mulitpage Set Focus

B

Ben

I want to set the focus on a TextBox on a different Page within a MultiPage
control.

Essentially, the code I wrote looks like this...

Private Sub Multipage1_Change()

me.Multipage1.Value = 2
textbox1.SetFocus

End sub

The textbox is on the 3rd page of the multipage.

I get the following error when the code is executed:

Run-Time error '2110':

Can't move focus to control because it is invisible, not enabled, or type
that does not accept the focus.


Thanks in advance.

--Ben
 

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