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

squeakums

Well-known Member
Joined
May 15, 2007
Messages
602
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?
 

xenou

MrExcel MVP, Moderator
Joined
Mar 2, 2007
Messages
16,508
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,077,662
Messages
5,335,561
Members
399,024
Latest member
rokcel389

Some videos you may like

This Week's Hot Topics

Top