Hey all
I am wondering if any of you is aware if there is a way to check and see if the text value of a combobox is in the list of the values for that given combobox.
I had this code running and it doesnt seem to work very well. Even if I have the right name of the day, it still says it is not the same. I would like this to end the FOR loop as soon as it finds out whether the input in the combobox is in the preset values or not, so I can move on with the program.
For i = 0 to cboDay.ListCount
If UCase(cboDay.Text) <> UCase(cboDay.List(i)) Then
MsgBox "Not same"
Exit Sub
End If
Next i
thanks a lot
vlada
I am wondering if any of you is aware if there is a way to check and see if the text value of a combobox is in the list of the values for that given combobox.
I had this code running and it doesnt seem to work very well. Even if I have the right name of the day, it still says it is not the same. I would like this to end the FOR loop as soon as it finds out whether the input in the combobox is in the preset values or not, so I can move on with the program.
For i = 0 to cboDay.ListCount
If UCase(cboDay.Text) <> UCase(cboDay.List(i)) Then
MsgBox "Not same"
Exit Sub
End If
Next i
thanks a lot
vlada