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 
Multi Field Search Using Combo Boxes
David Torrey de Frescheville 
     
14 months ago
I am trying to figure out how to do a multi field search on a search form using text boxes, check boxes and combo boxes with a query and have the results display in a separate continuous form. I watched the Search Seminar but it shows how to do a search with combo boxes with VBA results displaying into a List  Box. Where can I learn how to use a combo box for a multi field search using a query? I have not been able to find this anywhere. Thanks!
Ronald de Boer  @Reply  
      
14 months ago
Hi David,  The way I would approach this is create a form with your text boxes, checkboxes and combo boxes to enter your search criteria.  Create a query using these fields on this search form in your query criteria and then use the query results in your continuous form.

In Criteria in your query you type:  [Forms]![SearchFormF]![SearchField] etc etc!

On the SearchFormF have a button that loads the continuous form. When the forms loads the query is automatically run.
Kevin Robertson  @Reply  
          
14 months ago
I usually build the SQL string in VBA whenever I do a search like this.
My screenshot below shows a sample Search Form and the results in a Continuous Form.
Kevin Robertson  @Reply  
          
14 months ago

David Torrey de Frescheville OP  @Reply  
     
14 months ago
Hi Ronald - Thank you for this. I did do that but for some reason the search with the combo box is not working. I tried a regular text box and it works just fine with it, but when I change the text box to the combobox it doesnt work, I get no results on the continuous form. I checked the "criteria" to make sure I spelled everything correctly with the combo box name etc. several times.   All my text boxes work for the searches, but the combo box does not. I will post my code up here as soon as I can. Thank you!
David Torrey de Frescheville OP  @Reply  
     
14 months ago

David Torrey de Frescheville OP  @Reply  
     
14 months ago

David Torrey de Frescheville OP  @Reply  
     
14 months ago

David Torrey de Frescheville OP  @Reply  
     
14 months ago

David Torrey de Frescheville OP  @Reply  
     
14 months ago

David Torrey de Frescheville OP  @Reply  
     
14 months ago

David Torrey de Frescheville OP  @Reply  
     
14 months ago
So I CANNOT get it to work. It works with the textbox for the field, allowing someone to type in a value, but when I use the combobox instead, the search shows no values. Here is my code and everything. I can't figure this out.
Kevin Robertson  @Reply  
          
14 months ago
The problem is the ID field in your Combo Box. Remove it so there is only one Column. Also adjust the Column Count and Column Widths properties accordingly.

Set your Row Source to:
   SELECT PlantType FROM PlantTypeT ORDER BY PlantType

Now your Query should be getting PlantType, and not PlantTypeID.
David Torrey de Frescheville OP  @Reply  
     
14 months ago
Hi Kevin - I can't thank you enough. IT WORKED!!!!! This project I am working on keeps getting bigger and I am taking Richards classes and watching videos on what I need that I haven't seen in the lessons, yet. I think I just got really confused with all the different ID's and all the different videos I've been watching. THANK YOU!

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/6/2026 12:39:26 AM. PLT: 0s