ACC2: How to Create a Multiple-Selection List Box (121356)
The information in this article applies to:
This article was previously published under Q121356 SUMMARY
Advanced: Requires expert coding, interoperability, and multiuser skills.
In a typical list box, you can select only one item at a time. This article
describes how to create a multiple-selection list box in which you can
select more than one item at a time.
NOTE: Microsoft Access version 7.0 has incorporated the MultiSelect
property for list box controls. The MultiSelect property of a list box
specifies whether a user can make multiple selections in a list box and
how the multiple selections can be made.
The following example demonstrates how to create a two-column list box in
Microsoft Access version 2.0. The first column displays an "X" if the row
is selected, or is blank if the row is not selected. The second column
will contain the values that you can select. This article also
demonstrates how to create a semicolon-delimited list of the items
selected in the list box.
This article assumes that you are familiar with Access Basic and with
creating Microsoft Access applications using the programming tools provided
with Microsoft Access. For more information on Access Basic, please refer
to the "Introduction to Programming" manual in Microsoft Access version
1.x, or the "Building Applications" manual in version 2.0.
REFERENCES
For more information about using an Access Basic function to fill a list
box, search for "filling list boxes/combo boxes," and then "Filling a List
Box or Combo Box Using an Access Basic Function" using the Microsoft Access
version 2.0 Help menu.
For more information about MultiSelect list boxes in Microsoft Access
version 7.0, search for "MultiSelect Property" using the Microsoft Access
for Windows 95 Help Index.
Modification Type: | Major | Last Reviewed: | 11/6/2000 |
---|
Keywords: | kbhowto kbusage KB121356 |
---|
|