Create a Multi-Select List Box in Access
For Selection of Query Parameters
Learn how to setup and program a
multi select parameter list for supplying
parameters to a Microsoft Access query. There are many methods used to
supply parameters to Access query and reports. The multi select list box
demonstrate a power method which adds flexibility to your Access queries and
Microsoft Access is a fully capable database and it's primary limitations is the number of concurrent users it will support. Generally, we recommend a limit of 10 to 15 users.
We create databases large and small. Some of our databases help run entire small businesses. We also handle unique businesses such as flyrod manufacturing, cheese making, marina management, and cable tv inventory.
Our list box parameter example used the extended property of the list box to
allow the user to select multiple entries by using a combination of the CTRL and
Shift keys. The downloadable Access database provides all the tables,
forms, and queries to give you the knowledge to get started create flexible
queries and reports for your users.
The example uses a combination of SQL, VBA and forms design methods to create a
simple yet powerful tool for your Access tool kit.
Also see a detailed discussion of the methods used for this example in our forms
programming section under
multi-select parameter form query
You may use the multi select list box technique to directly filter a report.
Using our example, the report filter would like this: "state in (select
state from t_states)". However, this method would likely be slower than
filtering the query itself. Also remember to create an index on the State
field in both the M_Customers and the T_States table in order to speed up the
multi select list box query parameter Microsoft Access database.