Arkadaşlar form üzerinde bir textbox ve bir combobox var. Combobox içeriği
0,31-1,50
1,51-3,00
3,01-6,00
6,01-9,00
9,01-12,00
12,01-15,00
15,01-20,00
Textbox'a bir değer girdiğimde; örneğin 2,65 olsun
Combobox da 1,51-3,00 olarak görünsün istiyorum. Form üzerinde çalışyorum. Şöyle bir kod yazdım ama hata veriyor.
If TextBox12.Text >= "0,31" Or TextBox12.Text <= "1,5" Then GovdeDolguComboBox.Value = "0,31-1,50"
ElseIf TextBox12.Text >= "1,51" Or TextBox12.Text <= "3,0" Then GovdeDolguComboBox.Value = "1,51-3,00"
ElseIf TextBox12.Text >= "3,01" Or TextBox12.Text <= "6,0" Then GovdeDolguComboBox.Value = "3,01-6,00"
ElseIf TextBox12.Text >= "6,01" Or TextBox12.Text <= "9,0" Then GovdeDolguComboBox.Value = "6,01-9,00"
ElseIf TextBox12.Text >= "9,01" Or TextBox12.Text <= "12,0" Then GovdeDolguComboBox.Value = "9,01-12,00"
ElseIf TextBox12.Text >= "12,01" Or TextBox12.Text <= "15,0" Then GovdeDolguComboBox.Value = "12,01-15,00"
ElseIf TextBox12.Text >= "15,01" Or TextBox12.Text <= "20,0" Then GovdeDolguComboBox.Value = "15,01-20,00"
End If
Yardımlarınızı bekliyorum. Saygılar
0,31-1,50
1,51-3,00
3,01-6,00
6,01-9,00
9,01-12,00
12,01-15,00
15,01-20,00
Textbox'a bir değer girdiğimde; örneğin 2,65 olsun
Combobox da 1,51-3,00 olarak görünsün istiyorum. Form üzerinde çalışyorum. Şöyle bir kod yazdım ama hata veriyor.
If TextBox12.Text >= "0,31" Or TextBox12.Text <= "1,5" Then GovdeDolguComboBox.Value = "0,31-1,50"
ElseIf TextBox12.Text >= "1,51" Or TextBox12.Text <= "3,0" Then GovdeDolguComboBox.Value = "1,51-3,00"
ElseIf TextBox12.Text >= "3,01" Or TextBox12.Text <= "6,0" Then GovdeDolguComboBox.Value = "3,01-6,00"
ElseIf TextBox12.Text >= "6,01" Or TextBox12.Text <= "9,0" Then GovdeDolguComboBox.Value = "6,01-9,00"
ElseIf TextBox12.Text >= "9,01" Or TextBox12.Text <= "12,0" Then GovdeDolguComboBox.Value = "9,01-12,00"
ElseIf TextBox12.Text >= "12,01" Or TextBox12.Text <= "15,0" Then GovdeDolguComboBox.Value = "12,01-15,00"
ElseIf TextBox12.Text >= "15,01" Or TextBox12.Text <= "20,0" Then GovdeDolguComboBox.Value = "15,01-20,00"
End If
Yardımlarınızı bekliyorum. Saygılar
