List Box with Multi-Select

  • Thread starter Thread starter Jim Pockmire
  • Start date Start date
J

Jim Pockmire

Two Questions,

1. When using a list box with multi-select set to "Simple" is there a way to
clear the selections without clicking each item separately (similar to
re-querying an "Extended" list)?

2. How do I use the selections in a multi-select list to limit the values in
a query (similar to an inner join on the list values)?

Jim
 
1. You can write code to loop through all of the entries in the listbox,
setting their Selected property to False. One approach is:

For intCurrentRow = 0 To lstBox.Listcount - 1
lstBox.Selected(intCurrentRow) = False
Next intCurrentRow

2. See http://www.mvps.org/access/forms/frm0007.htm at "The Access Web" for
one approach
 
Back
Top