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 
Requery main form on tabcontro
David Campbell 
     
3 years ago
I have a form with sub-form that works properly with main-form to re-query main-form.  When I place form on tab control I get a message saying form cannot be found
Sami Shamma  @Reply  
             
3 years ago
send images and more details
David Campbell OP  @Reply  
     
3 years ago

David Campbell OP  @Reply  
     
3 years ago
Account form and transaction sub form work fine updating when not in a tab control when placing in tab control i get an error not finding account form. I want the account form to re-query to update balance when transaction form amount is changed
Kevin Yip  @Reply  
     
3 years ago
When you put a form on a tab control, it becomes a "subform control" on that tab, and that requires a change in your form references.

This is how a subform is usually referenced, before you put your form on a tab control:

     Forms!MyMainForm!MySubform

But after you put "MyMainForm" on a tab control, you need to reference the subform with this:

     Forms!FormWithTabs!SubformControlOnTab.Form!MySubform

This is one reason why Richard and many Access users aren't big fans of tab controls.  They change your form references completely and require complete code rewrites in a case like this.

If you want your form to work with or without tab control, you need to write some tricky VBA.
David Campbell OP  @Reply  
     
3 years ago
I solved this this problem by having an unbound control on form lined up under tab control looks same.  Then used a case statement in VBA for tab control page, then had forms load into unbound control based on the page index.  Other benefit speed, you don't have to have all the pages load at one time.  Working great.
Alex Hedley  @Reply  
           
3 years ago
Is the Tab Control not on Evil Access Stuff?

You can mimic tabs using Vehicle Maintenance or ABCD

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/7/2026 2:23:27 AM. PLT: 0s