Connecting Tech Pros Worldwide Help | Site Map

Tab from header to detail in subform

  #1  
Old November 13th, 2006, 02:05 PM
abprules
Guest
 
Posts: 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!:

  #2  
Old November 13th, 2006, 04:35 PM
kingston via AccessMonster.com
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validating data on a subform RLN answers 0 January 25th, 2008 05:15 PM
Access 97 Multiple columns [comboboxes] on single subform Major Doug answers 3 January 14th, 2008 06:32 PM
Tab from the main form, form header to the subform, form header in Access 2003 jdicko5579 answers 1 May 29th, 2007 04:41 PM
Detect when bound field is updated on subform vulcaned@isp.com answers 4 November 13th, 2005 07:26 AM