well i have 2 combo boxes. start_time and end_time. They both contain 26 times starting from 09:00:00 to 22:00:00. Depending on what time is chosen for the start time, i want times equal to it and less than it to be removed from the end_time combo box. This is actually for VB6.
this is the code i have so far: it works sometimes but at times shows 'invalid procedure calll or argument' error
Private Sub Command1_Click()
Dim cbo_list_item As Integer
cbo_list_item = -1
Do Until cbo_list_item = 27
cbo_list_item = cbo_list_item + 1
If cmb_Start_Times.Text >= cmb_End_Times.List(cbo_list_item) Then