Connecting Tech Pros Worldwide Help | Site Map

Tab from header to detail in subform

abprules
Guest
 
Posts: n/a
#1: Nov 13 '06
I am trying to tab from my header to my detail section in a form that
includes a tabcontrol form. It is not working. Can anybody suggest
something.
I have tried the following:

Add a text box to the header section, make it last in the tab order of
that section, and set these properties:

Name: txtTransferToDetail
Visible: Yes
Enabled: Yes
SpecialEffect: Flat
Width: 0
Height: 0
OnGotFocus: [Event Procedure]

Create the following event procedure for its GotFocus event:
Private Sub txtTransferToDetail_GotFocus()
Me!NwcontactID.SetFocus (with nwcontactID being the first
control on my subform within my tabcontrol page)
End Sub


(where "nwcontactID" is the name of
the first control in my detail section on the 1st page of the subform
that you I want to get the focus.) nd this is not working.
HELP!:

kingston via AccessMonster.com
Guest
 
Posts: n/a
#2: Nov 13 '06

re: Tab from header to detail in subform


When you say tabcontrol form do you mean a subform? If you want to get to a
control in a subform, use something like this:

DoCmd.GoToControl Me.SubForm
DoCmd.GoToControl "nwcontactID"

abprules wrote:
Quote:
>I am trying to tab from my header to my detail section in a form that
>includes a tabcontrol form. It is not working. Can anybody suggest
>something.
>I have tried the following:
>
>Add a text box to the header section, make it last in the tab order of
>that section, and set these properties:
>
Name: txtTransferToDetail
Visible: Yes
Enabled: Yes
SpecialEffect: Flat
Width: 0
Height: 0
OnGotFocus: [Event Procedure]
>
>Create the following event procedure for its GotFocus event:
Private Sub txtTransferToDetail_GotFocus()
Me!NwcontactID.SetFocus (with nwcontactID being the first
>control on my subform within my tabcontrol page)
End Sub
>
>(where "nwcontactID" is the name of
>the first control in my detail section on the 1st page of the subform
>that you I want to get the focus.) nd this is not working.
>HELP!:
--
Message posted via http://www.accessmonster.com

Closed Thread