Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
 
 
Access 2010 Beginner 8
By Richard Rost   Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   10 years ago


Back to Access 2010 Beginner 8
 

Clear ComboBox Entry Upload Images   Link  
Dave Ingram 
14 months ago
Hi Richard, love the lessons clear and precise. I have successfully installed my ComboBox in the header of my form. I have it set to look for the FirstName and display the FirstName & LastName. Works a treat, is it possible to have the ComboBox text cleared ready for the next search? Dave from Aotearoa NZ (Land of the long white cloud)
"Lets Fly"
Adam Schwanz
14 months ago
I'll have to let someone else chime in on this one. I can't remember if there's a way to do it back in expert classes. But once you get to some macros or VBA programming you'll have no trouble doing this either with events or a "clear fields" button.
Richard Rost
14 months ago
There is no way to do it without programming. When you get to the Developer classes, I'll show you how. Hint: AfterUpdate Event
Joseph Messina
13 months ago
Hi Richard:

   Not sure if you cover this in any of the lessons.  I googled how to clear combo box after searching for record in Access.  Or if you know something better how to clear combo box after searching for a record in Access.  I can share the steps with you I found when I did google search.
Alex Hedley
13 months ago
Joseph I moved this to a recent post asking the same
Joseph Messina
13 months ago
Hi Alex:

     Can you tell me where thst post is so I can see if there is any replies or answers?
Alex Hedley
13 months ago
You're replying to it...
Joseph Messina
13 months ago
I see it.  I scrolled to the top.  I'm goong srnd u a screen shot what i found on google.  I know how to create combo vlboxes and add colums to it.  For example address.  I was trying tofigure out yo clear it after searchijg for record.
Joseph Messina
13 months ago

Alex Hedley
13 months ago
A MACRO, YOU POSTED A MACRO IN THIS FORUM :s
Only kidding.
Yes you can do it like that, much the same would be done, as Rich suggested above, using an AfterUpdate.
Many ways to skin a cat.
Elaine Heltman
13 months ago
I didn't end up using AfterUpdate, but the video led me to figure out how to clear combo boxes on a search form. It's a continuous form with 4 unbound combo boxes in the header and the related fields are in the form. Each "found" entry has a double-click event to go to its specific "detail" form. I used the following code in a button OnClick event to clear all the combo boxes and "reset" the form (the actual combo boxes have real names):
Forms!GeneralSearchFormF![Combo1].SetFocus
    Combo1.Text = ""
    
    Forms!GeneralSearchFormF![Combo2].SetFocus
    Combo2.Text = ""
    
    Forms!GeneralSearchFormF![Combo3].SetFocus
    Combo3.Text = ""
    
    Forms!GeneralSearchFormF![Combo4].SetFocus
    Combo4.Text = ""
    
    Me.Requery

Thanks for all the lessons, Richard!

This thread is now closed. If you wish to comment, start a NEW discussion, below.
 


Back to Access 2010 Beginner 8 Comments
 

Start a NEW Conversation
 
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.
 
Subscribe
 

You may want to read these articles from the 599CD News:

5/27/2022Add Anything
5/26/2022List Items Edit Form
5/25/2022Column Colors
5/24/2022Multi-Table Forms
5/23/2022Variables
5/21/2022Access Developer 39
5/21/2022Access Developer 39 Lessons
5/21/2022Access Developer 39
5/21/2022Select Items in Related Table
5/21/2022Clear List Box
 

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
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
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn