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 
Fill in as you type Combo Box
Jerry Fowler 
       
5 years ago
Before I became a member I had watched a number of Ricks TechHelp videos.  I believe I saw a video on this subject but have not found it.  What I would like to create is a fill in as you type combo box.  For example as you typed in the combo box au it would bring up items that are LIKE "au" like Auto, Autumn, Automobile and so on.  Thanks for all your help
Pete Santiago  @Reply  
       
5 years ago
Hey Jerry,  Richard explains the basic LIKE function in Access Beginner 5 Video 3 in a query.  Example: ZipCode LIKE "12345".  You can manipulate the "12345" with a field on your form (textbox, combobox).  I don't know all where to locate all the videos, but you will need to understand some basics.  LIKE function, Quotes in a string (numbers), and basics of a SELECT statement.
Adam Schwanz  @Reply  
           
5 years ago
Doesn't the combo box do that by default? Or are you wanting to change what is offered inside of the combo box based on what's typed?

The same concept is covered in the Search Seminar Search as you type in text boxes.
Scott Axton  @Reply  
        
5 years ago
If you click in, or tab to, and start typing in a combo box it will do what you're asking.  You don't have to do anything special.  Unless I'm not understanding the question.

Now what happens when you select the value in the combo box is a whole different topic.  Go watch the Relational Combo for more onfo.
Scott Axton  @Reply  
        
5 years ago
Ha - Guess I should refresh before I hit submit Adam.  At least we think similar.
Scott Axton  @Reply  
        
5 years ago
BTW Jerry -

Richard has a very comprehensive search for the forum up on the main menu bar. For instance go type "Combo Box" and you will get multiple results - both in the courses and the TechHelp Videos.
Jerry Fowler OP  @Reply  
       
5 years ago

Jerry Fowler OP  @Reply  
       
5 years ago

Jerry Fowler OP  @Reply  
       
5 years ago
Sorry only meant to upload 2 images, the first and the second.  The other ones can be deleted.

Thanks for the replies but here is my form with the combo box in image I have typed "Ca" and thats all it shows and in image two is where I clicked on the down arrow.  Am I maybe suppose to put some in the "On Change: event?
Jerry Fowler OP  @Reply  
       
5 years ago
I got it, your replies got me to thining I needed to put some vba code in the on change event so this is what I came up with

Private Sub Combo20_Change()


Dim strText, strFind

If Len(Trim(strText)) > 0 Then
    strFind = "ProdName Like '"
    For i = 1 To Len(Trim(strText))
        If (Right(strFind, 1) = "*") Then
            strFind = Left(strFind, Len(strFind) - 1)
        End If
        strFind = strFind & "*" & Mid(strText, i, 1) & "*"
    Next
    strFind = strFind & "'"
    
    strSQL = "SELECT [ProductT].[ID], [ProductT].[ProdName] FROM ProductT Where " & _
    strFind & " ORDER BY [ProdName];"
    
    Me.Combo20.RowSource = strSQL
    
Else
    ' Show the entire list.
    strSQL = "SELECT [ProductT].[ID], [ProductT].[ProdName] FROM ProductT ORDER BY [ProdName]; "
    Me.Combo20.RowSource = strSQL
End If

Me.Combo20.Dropdown

End Sub



Again thanks for pushing me in the right direction

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/9/2026 7:30:59 AM. PLT: 0s