Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Tab order skips header
Antonio Rodriguez 
     
2 years ago
I have created a parent form with a subform in it. The subform has a header with fields in it as well as fields in the detail of the subform.

When I tab from the parent form to the subform. It skips the header and goes directly to the detail of the subform.

I'd like for it to go:

Parent form
Subform Header
Subform Detail

Can anyone help me accomplish this?
Sami Shamma  @Reply  
             
2 years ago
Have you tried setting the focus on the first field in the Subform header? try setting it in Subform "Onload" event.
Jeffrey Kraft  @Reply  
      
2 years ago
I asked Chatgpt this before.  Haven't tried it but here is what it said.

o achieve the desired tabbing sequence in your Microsoft Access form'where the focus moves from the parent form to the subform header and then to the subform detail'you can follow these steps:

Step 1: Set Tab Stop Property for the Subform Header Controls
Open your form in Design View.
In the subform, make sure that the controls in the header section have their Tab Stop property set to Yes (this allows them to be part of the tab order).
Adjust the Tab Index of these controls to ensure the proper tabbing order within the subform header.
Step 2: Adjust the Tab Order
Right-click on the parent form and choose Tab Order from the context menu.
In the Tab Order dialog, ensure that the subform itself has the appropriate tab position relative to other controls on the parent form.
Right-click on the subform and choose Tab Order to set the tabbing sequence within the subform.
In the subform's Tab Order, make sure the controls in the header section come first, followed by the detail section.
Step 3: Ensure Focus Shifts from Parent to Subform Header
By default, the focus goes to the first control in the subform detail section, but you can adjust this behavior by setting the focus to the first control in the subform header programmatically.

In the parent form's On Exit event for the last control that should move focus to the subform, add VBA code to set focus to the first control in the subform header:

Private Sub LastControlInParent_Exit(Cancel As Integer)
    Me!SubformControlName.Form!HeaderControlName.SetFocus
End Sub

Replace SubformControlName with the name of your subform control, and HeaderControlName with the name of the control in the header where the focus should go first.  Sorry for the long post but consider the source that tried to help me.

This will direct the focus to the subform header when tabbing from the parent form.
Kevin Yip  @Reply  
     
2 years ago
When you tab from the main form to the subform, it lands on the control that you were at the last time you were at the subform.  So, to tab from the main form directly to the subform's header, you need to be in the subform's header the last time you were at the subform.  You can use VBA code to set focus to wherever you want, of course.

You cannot tab from header to detail to footer, because each section's tab order is independent of the other sections' tab orders.  You need to click the sections manually or use VBA code to set focus to wherever you want.
Richard Rost  @Reply  
          
2 years ago
You can use the F6 and Shift-F6 keys to jump between the different sections of a form.

You can also do this with 2 lines of VBA code when you enter the subform - put the focus where you want. Like:

DetailsPrivate Sub OrderDetailF_Enter()

    DoCmd.GoToRecord , , acFirst
    OrderDetailF.Form!ProductName.SetFocus
    
End Sub


I've actually had this on my TechHelp list for a while now. I'll put a video together for it. Stay tuned.
Richard Rost  @Reply  
          
2 years ago
You can start with this: Subform Goto First Field
Antonio Rodriguez OP  @Reply  
     
2 years ago
Thank you so much. It worked!

And yes, you did pronounce Lytle correctly.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/2/2026 9:06:33 AM. PLT: 0s