maintenant que j'ai réglé l'affichage et la modification de ma textbox47
Tu as fait quoi ?
et de quelle modfi tu parles : je ne comprends pas bien la demande
Bah en fait j'ai supprimer
If ComboBox1 <> "" Then Exit Sub
Dans le combobox24
Voila mon code pour ComboBox24 , Textbox46 et Texbox47 qui sont lier entre elles
Private Sub ComboBox24_Change()
If rz = 99 Then Exit Sub
' If ComboBox1 <> "" Then Exit Sub
'TextBox47_Change
End Sub
'Affichage ONGLETS
Private Sub TextBox46_Change()
If rz = 99 Then Exit Sub
Inc = 0
If Me.TextBox112 <> "" Then Inc = Inc + 1
If Me.TextBox104 <> "" Then Inc = Inc + 1
If Me.TextBox96 <> "" Then Inc = Inc + 1
If Me.TextBox88 <> "" Then Inc = Inc + 1
If Me.TextBox80 <> "" Then Inc = Inc + 1
If Me.TextBox72 <> "" Then Inc = Inc + 1
Me.TextBox46 = Inc
TextBox47_Change
If TextBox46.Value = "6" Then
UserForm1.MultiPage1.Page5.Visible = True
UserForm1.MultiPage1.Page6.Visible = True
UserForm1.MultiPage1.Page7.Visible = True
UserForm1.MultiPage1.Page8.Visible = True
UserForm1.MultiPage1.Page9.Visible = True
UserForm1.MultiPage1.Page10.Visible = True
Else
If TextBox46.Value = "5" Then
UserForm1.MultiPage1.Page5.Visible = True
UserForm1.MultiPage1.Page6.Visible = True
UserForm1.MultiPage1.Page7.Visible = True
UserForm1.MultiPage1.Page8.Visible = True
UserForm1.MultiPage1.Page9.Visible = True
UserForm1.MultiPage1.Page10.Visible = False
Else
If TextBox46.Value = "4" Then
UserForm1.MultiPage1.Page5.Visible = True
UserForm1.MultiPage1.Page6.Visible = True
UserForm1.MultiPage1.Page7.Visible = True
UserForm1.MultiPage1.Page8.Visible = True
UserForm1.MultiPage1.Page9.Visible = False
UserForm1.MultiPage1.Page10.Visible = False
Else
If TextBox46.Value = "3" Then
UserForm1.MultiPage1.Page5.Visible = True
UserForm1.MultiPage1.Page6.Visible = True
UserForm1.MultiPage1.Page7.Visible = True
UserForm1.MultiPage1.Page8.Visible = False
UserForm1.MultiPage1.Page9.Visible = False
UserForm1.MultiPage1.Page10.Visible = False
Else
If TextBox46.Value = "2" Then
UserForm1.MultiPage1.Page5.Visible = True
UserForm1.MultiPage1.Page6.Visible = True
UserForm1.MultiPage1.Page7.Visible = False
UserForm1.MultiPage1.Page8.Visible = False
UserForm1.MultiPage1.Page9.Visible = False
UserForm1.MultiPage1.Page10.Visible = False
Else
If TextBox46.Value = "1" Then
UserForm1.MultiPage1.Page5.Visible = True
UserForm1.MultiPage1.Page6.Visible = False
UserForm1.MultiPage1.Page7.Visible = False
UserForm1.MultiPage1.Page8.Visible = False
UserForm1.MultiPage1.Page9.Visible = False
UserForm1.MultiPage1.Page10.Visible = False
Else
If TextBox46.Value = "0" Then
UserForm1.MultiPage1.Page5.Visible = True
UserForm1.MultiPage1.Page6.Visible = False
UserForm1.MultiPage1.Page7.Visible = False
UserForm1.MultiPage1.Page8.Visible = False
UserForm1.MultiPage1.Page9.Visible = False
UserForm1.MultiPage1.Page10.Visible = False
End If
End If
End If
End If
End If
End If
End If
End Sub
Private Sub TextBox47_Change()
If rz = 99 Then Exit Sub
'If ComboBox1 <> "" Then Exit Sub
TextBox47.Value = (Val(ComboBox24.Value) - Val(TextBox46.Value))
If TextBox47.Value < 0 Then
TextBox47.BackColor = &HFF&
Else
TextBox47.BackColor = &HFF00&
End If
End Sub
Du coup cela valide correctement ma textbox47 mais cela me le compte comme une modification du contact et de ce fait me demande de valider la modification pour chacun des contacts aa,ab,ba,bb ..... En fait un peu pareil que pour les villes et les codes postaux tout à l'heure
Comment faire pour éviter la vérification