Results 1 to 9 of 9

Thread: Calling out values entered into Combo Box

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    10

    Resolved Calling out values entered into Combo Box

    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:
    1. Select Case Classification.Car_Make.Value
    2.     Case "Acura"
    3.         Car = 1
    4.         Class_Results.Make_Text_Box.Caption = "Acura"
    5.     Case "Audi"
    6.         Car = 2
    7.         Class_Results.Make_Text_Box.Caption = "Audi"
    8.     Case Else
    9.         Bead = 0                                
    10. End Select
    11.    
    12. If Car = 1 Then
    13.     Classification.Car_Model.AddItem "CL", 0
    14.     Classification.Car_Model.AddItem "Integra", 1
    15.     Classification.Car_Model.AddItem "Integra Type R", 2
    16.     Classification.Car_Model.AddItem "Legend", 3
    17.     Classification.Car_Model.AddItem "NSX", 4
    18.     Classification.Car_Model.AddItem "RL", 5
    19.     Classification.Car_Model.AddItem "RSX", 6
    20.     Classification.Car_Model.AddItem "RSX Type S", 7
    21.     Classification.Car_Model.AddItem "TL", 8
    22.     Classification.Car_Model.AddItem "TSX", 9
    23.     Classification.Car_Model.AddItem "Vigor", 10
    24.     Class_Results.Model_Text_Box.Caption = Classification.Car_Model.Value
    25. 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?
    Last edited by DSPDA3; Jun 22nd, 2005 at 10:09 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width