SetFocus Tab Control

  • Thread starter Thread starter Ashley
  • Start date Start date
A

Ashley

Using Access 2002, I have a form with a Tab Control that
has 4 pages.

What I want to do is that when data in entered into a
text box on Page 4 focus is set to a text box on Page 1.

Using Me!TabCtl0.Pages!Details.SetFocus moves focus from
Page 4 to Page 1 but trying to go to the Type contraol on
Page 1 using Me!TabCtl0.Pages!Details!Type.SetFocus I get
a message Run time error 428 Object doesn't support this
property or method"

Advice on where the code is wrong would be appreciated

Thanks in advance

Ashley
 
In the AfterUpdate event procedure of the text box on page 4, you should be
able to just SetFocus to the text box on page 1, e.g.:
Me.Text1.SetFocus
 
Type is a reserved word in Access -
you may have better results if you use something like MyType,
ProductType, or whatever fits your situation.
 

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

Back
Top