Group: microsoft.public.access
From: =?Utf-8?B?YW4=?=
Date: Thursday, October 18, 2007 2:07 PM
Subject: Re: Compile error

Ufff!

Problem solved with insert
Forms!F_Form.TabCtl2.Pages(2).SetFocus

Thank you.
an

"Arvin Meyer [MVP]" wrote:

> 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.
> --
> Arvin Meyer, MCP, MVP
> http://www.datastrat.com
> http://www.mvps.org/access
> http://www.accessmvp.com
>
> "an" wrote in message
> news:41A1AB9E-EACA-4973-BCF7-693083EAC2D1@microsoft.com...
> > 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
> >
> >
>
>
>