469,625 Members | 1,086 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

Tab from header to detail in subform

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!:

Nov 13 '06 #1
1 3827
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:
>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

Nov 13 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by MacDermott | last post: by
1 post views Thread by David Horowitz | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.