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
 
Back
Top