Compile error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi!

I have a form with combobox.
In combo AfterUpdate I have the next: (Thanks George Nicholson)

If me.combobox = n Then
Me.TabCtl2 = 1
Page Index 1
Me.TextboxX.Setfocus
End If

Where TabCtl2 is Tab Control name.

When I tried to compile, highlighted:
..TabCtl2 =

and show error:
Method or data member not found.

What to do, please? (Acc2007)

Thanks in advance.
an
 
Tab control pages are referred to like:

Me.TabCtl2.Pages(1).SetFocus

and a textbox just needs a reference like:

Me.TextboxX.Setfocus

You do not need to set focus to the Tab Control first.
 
Thanks for reply.

Return

Compile error:
Wrong number of arguments or invalid property assignment and highlighted
..Pages

an
 

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