Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 13th, 2006, 02:05 PM
abprules
Guest
 
Posts: n/a
Default 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!:

  #2  
Old November 13th, 2006, 04:35 PM
kingston via AccessMonster.com
Guest
 
Posts: n/a
Default 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

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles