Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Subforms
Yonatan Weinberg 
     
3 years ago
I'm trying to link two subforms in a parent form, I wanted to know if someone could help with it
Scott Axton  @Reply  
      
3 years ago
Is this what you are talking about?

Synchronize Subforms
Yonatan Weinberg OP  @Reply  
     
3 years ago
Thanks Scott! Sorry for the delay,

I watched it and basically it's the same idea but my only problem is that it's connected in a form that already has data as well and for some reason the two subforms don't connect as nicely.
Scott Axton  @Reply  
      
3 years ago
As long as the relationships are correct having data already shouldn't be an issue.
Can you be more specific as to "don't connect as nicely"?  What problems are you having?

Probably need to post some screenshots.
Yonatan Weinberg OP  @Reply  
     
3 years ago

Yonatan Weinberg OP  @Reply  
     
3 years ago

Yonatan Weinberg OP  @Reply  
     
3 years ago

Yonatan Weinberg OP  @Reply  
     
3 years ago
In the first image it's a form to keep track of suppliers and the products they sell.

There are two subforms, the left one is a product list form that lists all the items that the specific supplier sells, and the one on the right is a price update form that you can track changes in price per item.

What I want is that when I click oil in the Product List form the Price Update form will filter and show me only the price history for oil
Kevin Robertson  @Reply  
          
3 years ago
Set the Record Source of the second subform to an SQL statement and add a where condition.
Then in the On Current Event of the first subform requery the second.
See my example below which shows how to accomplish what you want.
Kevin Robertson  @Reply  
          
3 years ago

Yonatan Weinberg OP  @Reply  
     
3 years ago
Hi Kevin,

I tried it but it still doesn't work, I don't know why since I did everything you wrote.
Yonatan Weinberg OP  @Reply  
     
3 years ago
Gives me an error 2452 each time I try to open the supplier form
Yonatan Weinberg OP  @Reply  
     
3 years ago

Kevin Robertson  @Reply  
          
3 years ago
Which form's OnCurrent event did you put the code in?
Should be in the ProductSubF (or whatever you named your subform).
Yonatan Weinberg OP  @Reply  
     
3 years ago
The one on the right, The PriceUpdateF
Yonatan Weinberg OP  @Reply  
     
3 years ago
I changed it to the SubForm on the left and it filters it but when I click on the next item it doesn't change with it

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: 8/7/2026 4:26:20 PM. PLT: 1s