If list box null

  • Thread starter Thread starter Guest
  • Start date Start date
The listbox will have a "value" or be Null if it is NOT multiselect (simple
or extended). If it is multiselect, you have to go through the ItemsSelected
collection to find out which rows have been selected. This collection also
has a Count property. So, if no items are selected then the count will be
zero. This will change your If statement to

If Me.MyListBox.ItemsSelected.Count = 0 Then
 

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