We help IT Professionals succeed at work.

Wildcard characters in unbound Combo Box.

Last Modified: 2013-12-03
I have a form with several combo boxes and check boxes plus a subform.

Each combo box has a rowsource pointing to a specific field of a table.

When the user makes a selection in one of the combo boxes, the subform is populated with matching records through the LinkChildFields and LinkMasterFields properties.

If selections are made from several combo boxes and the associated check boxes are checked, the LinkChildFields and LinkMasterFields properties are developed from a concatenated string representing the chosen fields.

Everything works fine.

Now, however, I've been asked to provide wildcard (*) searching in several of the unbound combo boxes.  I can't figure out how to pass wildcard characters to the combo box to populate the subform.

Any help would be sincerely appreciated.
Watch Question

Hi colin4,

Use "Like '" & Me.ComboboxValue & "'" instead of using the = operator and they should be able to use the *



Thanks for the quick response, Kelly.

I'm having trouble correcting the following code to match your suggestion:

Me.sfmChemno_Browse.LinkChildFields = "pif_chemical_desc"
Me.sfmChemno_Browse.LinkMasterFields = "cmboChemicalDescription"

This one is on us!
(Get your first solution completely free - no credit card required)


Hi again Kelly,

Thanks for your continued help.  Sorry to be such a nuisance.

My subform uses a single table as the "record source" and doesn't use a "rowsource" property.  It returns a dynaset  record collection based on the Child and Master links.

Each combo box in the Master form represents the contents of a unique matching field(s) in the record source of the subform.

The LinkChildFields and LinkMasterFields properties are the only connection between the Master form and the Child form (subform).  The only "rowsource" definitions that exist are in the various combo boxes that pull a single field from an external table.  The code for each combo box creates the unique Child and Master field property strings.

The check boxes are evaluated when a separate button is pressed, and concatenated strings for the Child and Master field properties are passed to the subform.

All of the code for passing the contents of the combo boxes and checking the status of the check boxes (through the LinkChildFields and LinkMasterFields properties) exist in the Master form.  Nothing is evaluated in the subform.

Perhaps I've misunderstood your suggestions and there actually is an automatically created "where" clause buried somewhere in the forms.  If there is, I didn't create it.

I've looked at the SQL code view within both forms and can't find a "where" equivalent.

Here is the code for one of the combo boxes:


Scott McDaniel (EE MVE )Infotrakker Software
Most Valuable Expert 2012
Top Expert 2014
This one is on us!
(Get your first solution completely free - no credit card required)

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.