I'm having some issues returning a value from a combo box. Acura, Audi, etc. are added to a combo box in the Load_Menu code, and are taken care of when I load the program. Based on what's chosen in the first combo box, the next combo box is populated as a result. I've shown the first choice simply to save space...
-------------------------------------------------
VB Code:
Select Case Classification.Car_Make.Value Case "Acura" Car = 1 Class_Results.Make_Text_Box.Caption = "Acura" Case "Audi" Car = 2 Class_Results.Make_Text_Box.Caption = "Audi" Case Else Bead = 0 End Select If Car = 1 Then Classification.Car_Model.AddItem "CL", 0 Classification.Car_Model.AddItem "Integra", 1 Classification.Car_Model.AddItem "Integra Type R", 2 Classification.Car_Model.AddItem "Legend", 3 Classification.Car_Model.AddItem "NSX", 4 Classification.Car_Model.AddItem "RL", 5 Classification.Car_Model.AddItem "RSX", 6 Classification.Car_Model.AddItem "RSX Type S", 7 Classification.Car_Model.AddItem "TL", 8 Classification.Car_Model.AddItem "TSX", 9 Classification.Car_Model.AddItem "Vigor", 10 Class_Results.Model_Text_Box.Caption = Classification.Car_Model.Value End If
-----------------------------------------
When I select 'Acura', it pops up with list of models shown above. I then select 'Integra', but it doesn't return that value. Thoughts?




Reply With Quote