By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,501 Members | 2,871 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,501 IT Pros & Developers. It's quick & easy.

Tab from header to detail in subform

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.