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 Control Go To Page
Jerry Fowler 
       
5 years ago
I am trying to open a form and have it go to a specific tabbed page on the subform.  I have not had luck.  I can get the form loaded but have not been able to get it to one specific tab page.
Adam Schwanz  @Reply  
           
5 years ago
What do you mean tab page? Using Microsoft tab control or the entity subforms like Rick does in the ABCD?
Richard Rost  @Reply  
          
5 years ago
I absolutely abhor the tab control. HOWEVER, if you insist on using them, then you can use code like this to open a form and go to a specific tab (which Access calls a "Page")...

    DoCmd.OpenForm "CustomerF"
    Forms!CustomerF!TabControl = 1


The TabControl object itself has a value. Set the value to whatever page you want to have focus. The page number is the "Page Index" property of that page.

I've never covered this in any of my videos because I HATE, HATE, HATE the tab control... but this would actually make a quick fast tips video. Might help someone else too.
Jerry Fowler OP  @Reply  
       
5 years ago
Ok Rick in Access 2019 I tried

DoCmd.OpenForm "MainMenuF"
    Forms!MainMenuF!TabControl = 7

and received an error that Microsoft Access could not find the field "TabControl" referred to in your expression.

So then I tried

DoCmd.OpenForm "MainMenuF"
    Forms!MainMenuF.TabControl = 7

thinking that changing to a period wouldn't make Access think it was a field, then got an error Application-defined or Object-defined error.

It's a work around but I could also just re-arrange the pages so the one I want to open to is the first page.
Adam Schwanz  @Reply  
           
5 years ago
TabControl is just a word there as a placeholder, you need to replace TabControl with the ACTUAL name of your tabcontrol. If you click on the tab control properties and go to name, that's what you need to put there.
Adam Schwanz  @Reply  
           
5 years ago

Jerry Fowler OP  @Reply  
       
5 years ago
Thanks Adam, I went "Duh" as soon as you said that lol.
Jerry Fowler OP  @Reply  
       
5 years ago
Adam or Rick, Happy Xmas Eve to all, I was rereading these helpful tips and was wondering if there is a Tech Help video on the Entity subforms that Rick does in the ABCD database?

Have a very blessed Christmas everyone!
Jerry Fowler OP  @Reply  
       
5 years ago
Sorry to keep posting but I figured it out.  You just overlay the subforms and make them invisible and then add buttons as tabs to make the one visible you want to see.  That is truly easier than the tabbed pages, whatever they are called :)
Kevin Robertson  @Reply  
          
5 years ago
Jerry,

A better way is to change the SourceObject.
Kevin Robertson  @Reply  
          
5 years ago

Kevin Robertson  @Reply  
          
5 years ago
The extended cut of the Vehicle Maintenance Tech Help video shows you how to do this.

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 10:06:32 AM. PLT: 1s