Multi-tab Setfocus Problem

T

TimT

Hello Experts!
I am trying to set focus on Page3 and on txtGRD1 once the user clicks
btnEnterGRD on the Page1.
I am getting an error: when setting it to txtGRD1 or Page3 of: "run-time
error 2110 cant move focus to the control because it is disabled, invisible
or of a type that does not accept focus". The tab and textbox are enabled and
visible so maybe I am trying to put it in in the wrong place?

code:

Private Sub btnEnterGRD_Click()
frm_SchC.GRD1.SetFocus
End Sub

Can someone help me with this?
Thanks
Tim
 

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