is it possible to select multiple values from either a combo

  • Thread starter Thread starter Guest
  • Start date Start date
A combo box may only have one value selected. A list box can have multiple
selections if its MultiSelect property is set to Simple or Extended. You can
then work with the selections using the list box' ItemsSelected property.
For example, to display the list in an adjoining textbox, you could use the
following code (adapted from "Access 97 Developer's Handbook", by Litwin,
Getz, & Gilbert):

With Me![YourListbox]
For Each varItem in .ItemsSelected
strList = strList & .Column(0,varItem) & vbCrLf
Next varItem
Me![YourTextBox] = strList
End With

Hope that helps.
Sprinks
 
Back
Top