Walkthrough on How to Create a Combo Box with a subform query

squeakums

Well-known Member
Joined
May 15, 2007
Messages
806
Office Version
  1. 365
Does anyone have a walkthrough on how to create a combo box with a subform query that is placed into a form please? Trying to get the combo box to search two different fields in the form but it isn't working for me and I guess I need to start from scratch on this one?
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

xenou

MrExcel MVP
Joined
Mar 2, 2007
Messages
16,836
Office Version
  1. 2019
Platform
  1. Windows
My honest opinion is that the easiest is to use inbuilt filtering features on a bound query. You just right click in the first field and filter on the values you want to filter down to. Now that you have all records with that values, you can repeat the process and filter on the next field for an even more granular subset of records. Nobody seems to consider such an easy method any good for some reason though.

So, another method is parameters in your source query.

then you can fiddle with code to edit the query source too, if you like to go that route - not so easy as the previous options but will work and if you have a specific need rather than a general purpose one then it may be worth it to do the extra work.
 

Forum statistics

Threads
1,171,626
Messages
5,876,519
Members
433,198
Latest member
itachi123

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top