(PeteCresswell) wrote in message
<vmtaq1driv36p21deg9hoefb8bn372elbr@4ax.com> :
> I've got a screen that has a subform containing an indeterminate number of
> records.
[quoted text clipped - 10 lines]
>
> Anybody been here?
I think you should be able to combine .SetFocus and gotorecord, perhaps
something like
docmd.gotorecord,,acnewrec
me.controls("txtTheFirstControl").setfocus

Signature
Roy-Vidar
(PeteCresswell) - 21 Dec 2005 01:16 GMT
Per RoyVidar:
>I think you should be able to combine .SetFocus and gotorecord, perhaps
>something like
>
>docmd.gotorecord,,acnewrec
>me.controls("txtTheFirstControl").setfocus
Bingo!
----------------------------------------------
4053 With Me.subTasks
4054 .SetFocus
4055 !txtBeginHoursMinutes.SetFocus
4056 End With
4059 DoCmd.GoToRecord , , acNewRec
----------------------------------------------
Thanks! I had never even heard of .GoToRecord...

Signature
PeteCresswell