1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Private Sub cmdvalid_Click()
Total.tot.Text = txt_tot.Text
Dim Repaffichage
Repaffichage = MsgBox("Souhaitez-vous ajouter une autre pièce", vbYesNo + vbQuestion, "Ajout d'une pièce")
If Repaffichage = vbYes Then
Code:
123456 | Dim ctext AS control
For Each ctext In Me.Controls
If ctext.Name Like "txt_*" Then
ctext.Value = ""
End If
Next |
Total.nom_p.AddItem Saisie.txt_Compie.Text
Total.tot.AddItem Saisie.txt_tot.Text
Saisie.Show
Else
If Repaffichage = vbNo Then
Total.nom_p.AddItem Saisie.txt_Compie.Text
Total.tot.AddItem Saisie.txt_tot.Text
Total.Show
End If
End If
End Sub |