- Katılım
- 20 Ekim 2005
- Mesajlar
- 504
s.a.
comboboxta taki değer ahmet ise texboxa 1, Mehmet ise 2 atamak istiyorum ama bir türlü texbox değeri almıyor. yazmaya çalıştığım kodlar aşağıda. nerede hata yapıyorum.
Private Sub TextBox7_Change()
If ComboBox1.Value = "Ahmet" Then
Texbox7.Value = 1
ElseIf ComboBox1.Value = "Mehmet" Then
Texbox7.Value = 2
End If
End Sub
comboboxta taki değer ahmet ise texboxa 1, Mehmet ise 2 atamak istiyorum ama bir türlü texbox değeri almıyor. yazmaya çalıştığım kodlar aşağıda. nerede hata yapıyorum.
Private Sub TextBox7_Change()
If ComboBox1.Value = "Ahmet" Then
Texbox7.Value = 1
ElseIf ComboBox1.Value = "Mehmet" Then
Texbox7.Value = 2
End If
End Sub
