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 26 27 28 29
| Private Sub cmdajout_Click()
Adodc4.Recordset.AddNew
If Datans.Text = "" Then
Reponse = MsgBox("Vous devez abselument remplir ce champ", vbOK + Apparence + TypeDeBox, "Iformation")
Else
Adodc4.Recordset![N°Série] = Trim$(Datans.Text)
If Datalogin.Text = "" Then
Reponse = MsgBox("Vous devez abselument remplir ce champ", vbOK + Apparence + TypeDeBox, "Iformation")
Else
Adodc4.Recordset![login] = Trim$(Datalogin.Text)
If Dataproj.Text = "" Then
Reponse = MsgBox("Vous devez abselument remplir ce champ", vbOK + Apparence + TypeDeBox, "Iformation")
Else
Adodc4.Recordset![Nom_Projet] = Trim$(Dataproj.Text)
Adodc4.Recordset![Date_Affectation] = Trim$(txtdate.Text)
End If
End If
End If
End Sub |
Partager