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 
Add Record with Dependent Fid
Jeffrey Hebert 
    
3 years ago
I have two tables. One is a list of manufacturers and the second is a list of model numbers  A manufacturer can have multiple model numbers.  I'm struggling to create a Form where I can add a new model number to an existing Manufacturer.  I have a sub form the shows the selected Manufacturer And ManufacturerID in the header and the list of existing Models. As soon as I place the curser in the new model field the ManufactureID in the header clears and I can't enter a new model Number.   In the table I could just enter the Manufacturer and the new model number.  Ideally there would be a place where the selected ManufacturerID is auto filled and I could simply ad a new model number the Save to record to the Model number table. MAybe I can create a control button with some VBA that captures the ManufacturerID then asks for the new model number then commits both to the ModelNumber table?
Kevin Robertson  @Reply  
          
3 years ago
You could use an Input Box to get the value and an INSERT INTO statement to save the value to the table. You could display the values associated with the current manufacturer in a Subform or a List Box. In my example below I opted for a List Box.
Kevin Robertson  @Reply  
          
3 years ago

Jeffrey Hebert OP  @Reply  
    
3 years ago
Thanks Richard I solved this by using an Update Query.   The VBA was a bit tricky for me but I really appreciate the time you spent to provide the above option.  Thank you.

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 9:37:09 PM. PLT: 0s