F
FA
Can anyone help me with How to Change the Combo Box Value according to
a value in other text box. i have the following code in my Form Load
Event but its not working
I want to change or insert the value in the combo box name combo8
according to the value in the textbox called STD_RSK. So for example if
the value in STD_RSK text box is High, i want the combobox to show the
itemdata 3.
Private Sub Form_Load()
Select Case Me.STD_RSK.Value
Case Is = "High"
Me.Combo8.Value = Me.Combo8.ItemData(3)
Case Is = "Medium"
Me.Combo8.Value = Me.Combo8.ItemData(2)
Case Is = "Low"
Me.Combo8.Value = Me.Combo8.ItemData(3)
Case Else
' Without this: if the textbox has none of the expected valuesb
above,
' the backcolor would remain the same as whatever it was last
set to.
'Me.FINDG_RSK_LVL.BackColor = 16777215
End Select
End Sub
a value in other text box. i have the following code in my Form Load
Event but its not working
I want to change or insert the value in the combo box name combo8
according to the value in the textbox called STD_RSK. So for example if
the value in STD_RSK text box is High, i want the combobox to show the
itemdata 3.
Private Sub Form_Load()
Select Case Me.STD_RSK.Value
Case Is = "High"
Me.Combo8.Value = Me.Combo8.ItemData(3)
Case Is = "Medium"
Me.Combo8.Value = Me.Combo8.ItemData(2)
Case Is = "Low"
Me.Combo8.Value = Me.Combo8.ItemData(3)
Case Else
' Without this: if the textbox has none of the expected valuesb
above,
' the backcolor would remain the same as whatever it was last
set to.
'Me.FINDG_RSK_LVL.BackColor = 16777215
End Select
End Sub