Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Home > Forums > Access Forum > Requery by Ryan Fazio
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Requery
Ryan Fazio 
     
21 hours ago
I have a Project Management database.  The projects form has a sub form for selection of contact people related to that project.  I have a button that when a person is selected it opens the contact details form.  If a user clicks in a blank area the form is opened so a new record can be added.  Here is my issue.  Once a new person is added and the form is closed how do i requery the combo box in the subform on my project form so the new entry can be selected.

Ryan Fazio OP  @Reply  
     
21 hours ago

Kevin Robertson  @Reply  
          
21 hours ago
In the Close event:
   Forms!ParentFormName!SubformName.Form!ComboBoxName.Requery

Replace my placeholders with the appropriate names.
Kevin Robertson  @Reply  
          
21 hours ago
I would also use Richard's IsLoaded function to make sure the Parent Form is loaded.

Is Form Loaded
Richard Rost  @Reply  
          
18 hours ago
Kevin nailed it, as always.

Put the Requery in the Close event of your Contact form, since that is the point where the new contact has been saved and the user is returning to the Project form. Or I personally prefer to make a close button and turn off the close box. That way, you control exactly what happens. I do the same thing with delete.

Just be sure you are referencing the subform control name, which is not always the same as the name of the form object loaded inside it. The general syntax is:

Forms!ProjectF!ProjectContactSubformControl.Form!ContactCombo.Requery

And yes, using IsLoaded first is a good safeguard if the Contact form might ever be opened from someplace other than the Project form.
Add a Reply Upload an Image
Next Unseen

 
 
What's This?

 

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: 9/18/2026 5:47:41 AM. PLT: 1s