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 
Double Click Event Issue
Lee Shastid 
    
39 days ago
I have a field on a form to double click to add vendor. I have this on several forms they all work properly except for this one. If I enter for example John Doe in the field to see if he appears in the combo box drop down and he's not there I erase the John Doe and double click to enter a new vendor for John Doe. I also have a got focus event running to update the new entry so I dont have to close the form and reopen it. If I just click on the double click event in the field without any characters in it it all works just fine. Any ideas.
Lee Shastid OP  @Reply  
    
39 days ago

Lee Shastid OP  @Reply  
    
39 days ago

Lee Shastid OP  @Reply  
    
39 days ago

Alex Lewis  @Reply  
       
39 days ago
You can’t typically put a Requery command on a Got Focus or Before Update event for the combo box. All Requery does is reload the recordset with your forms or controls.

According to the error message you’re getting, you should use a double click event for your combo box to open an edit list form. That type of form is best if you’re trying to add a new record to your combo box. The edit list form should Requery the combo box on the main form automatically.
Lee Shastid OP  @Reply  
    
39 days ago
Alex Thank you. The Vendor field is a combo box on the main form. Let me tell you what I am trying to do and maybe you have an answer for me then. If I delete the Got Focus event and double click the field it opens up the vendor form for me to either edit or fill in as a new vendor on a blank form. Once I do that I have to close the main form before that vendor shows up in the droop down list. I put the requery Got focus event in so it would be there without closing the main form every time. Having to close the form every time and reopen it for it to be in the dop down is time consuming. It works as it is if I click to add a new vendor. But if anything is put in that field then double click is when I get the message.
Kevin Robertson  @Reply  
          
39 days ago
Lee Add this line before the Requery.

If Me.Dirty Then Me.Dirty = False
Lee Shastid OP  @Reply  
    
39 days ago
Kevin, Thank you that seems to work just trying it, I have a lot more records to enter so I will start working with it. I will let you know in a bit. Thank you.
Kevin Robertson  @Reply  
          
39 days ago


This should add the selected value back to your Combo Box (depending on your setup)

Lee Shastid OP  @Reply  
    
39 days ago
Wow. Kevin, That's way over my head. I will cut and paste it and try that. Thank you..Thank you...so make sure I understand it correctly. This will be the on the Main form I am working in Got focus event on the combo box field? The bold I change to the form that I will be editing. Is that correct?

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: 4/30/2026 4:03:53 AM. PLT: 0s