I have a combo-box that accepts multiple values. It is set up like this:
[] Empty
[] Math
[] Science
[] English
A user can select multiple options. However, when a user selects Empty, then the value should be blank or an empty string. The current implementation allows for the value to be a combination of 'Empty' and an actual subject.
I am using the AfterUpdate() event here
Private Sub Classes_Value_AfterUpdate()
Dim counter As Integer
For counter = 0 To MyComboBox.ItemsSelected.Count - 1
If MyComboBox.ListIndex(counter) = "Empty" Then
Me.MyComboBox.Value = " "
End Sub
But it doesn't seem to like the .ListIndex(counter)
line. I can't seem to check the value appropriately in my loop.
yourString="Blue,Green,Red"
(or that the.Value
of the control isBlue,Green,Red
)? If so, I have a solution. - ashleedawg