Re: Defaulting to a control

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Mark

I tried the following code in the OnLostFocus of the 'Personal Information'
Form

[Caller Detail].SetFocus ('Caller Details' being the name of the FIRST
TabControlPage.

When I then go to to create a new record I remain on the TabControlPage
where I last entered data - without defaulting back to the first page [ie
Caller Details].

Is there something I'm missing? [I noticed the MSFA Help said the
gotocontol, gotopage doesn't work on TabControlPages - so I'm hoping we can
crack this]. Thanks for your help.

--
Sue Compelling


"Mark A. Sam" wrote:

> Sue,
>
> In the LossFocus or Exit event of a control (or whereever else you want to
> place it),
>
> [Date].Setfocus will get you there unless you are in a subform, then
> Parent.[Date].Setfocus.
>
> [Page].Setfocus will move to that page. (Where Page is the Page Name)
>
> God Bless,
>
> Mark A. Sam
>
>
> "Sue Compelling" <SueCompelling@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:3A5BFDAF-56C1-4F87-809C-E2E11DB21416@xxxxxxxxxxxxxxxx
> > Hi - I have a form with FOUR TabControlPages in it. When the user has
> > completed the second, third or fourth TabControlPage details [note: only
> one
> > of these additional TabControlPages gets completed per record] I want the
> > cursor to default back to the FIRST TabControlPage [Caller Details] into
> the
> > Date field [Date]
> >
> > How do I do this? TIA
> >
> > --
> > Sue Compelling
>
>
>
.