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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top