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 items to combo box
John Hart 

13 years ago
Hi Richard,
Much thanks for the reply and explanation

What you're saying makes sense.  I did not know whoever that on close property on works if the form is open.  Makes sense but I never thought about it since I don't use it much.  In any event, that's not a problem.

I have replicated your method and I got it working just fine in my database.  I think we're miscommunicating.  Here's my scenario that I failed to explain.

I have a sports database.  There's a customer table and continuous form.  
I also have 4 other tables (football, basketball, baseball, soccer).  All 4 of these forms have a combobox named "cboCustomer" that is properly linked to my customer table.

I have tested the tip in your video in the football onclose event and it works great.  I click "add customer" and I the customers form pops up, I enter them in, and when I close it, that customer shows up in the customers combo box in the football form.

My question is, can I replicate this trick in the other 3 forms? Yes I realize I can only have them open on at a time and that's perfectly fine.

This is why I attempted to test with for statements.

Again, here's how I did it and it works.  The code below is coded in the customer table in the OnClose Event:
Private Sub Form_Close
Forms!frmFootball!cboCustomer.Requery
End Sub

I was attempting to add these:
Private Sub Form_Close
Forms!frmBasketball!cboCustomer.Requery
Forms!frmBaseball!cboCustomer.Requery
Forms!frmSoccer!cboCustomer.Requery
End Sub

Thanks again for all your help and hopefully I have explained it better this time around.



Reply from Richard Rost:

Use ONE table and ONE form for all four sports. Have a FIELD that indicates which sport it is.

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: 6/9/2026 10:54:45 AM. PLT: 0s