bgm2
Messages postés63Date d'inscriptionmercredi 2 mars 2005StatutMembreDernière intervention 3 juin 2005
-
7 avril 2005 à 18:44
bgm2
Messages postés63Date d'inscriptionmercredi 2 mars 2005StatutMembreDernière intervention 3 juin 2005
-
8 avril 2005 à 12:55
Salut tout le monde;
J'ai fait ce code pour la commande ajout mais il ne marche quelqu'un peut il m'aider:
Private Sub Command1_Click()
With Data1.Recordset
.AddNew 'ajoute un nouveau
.Fields("Code_site") = Label6.Caption
.Fields("Equip BTS") = Form1.Text14.Text
.Fields("Equip BSC") = Form1.Text18.Text
.Fields("Equip Trans1") = Form1.Text21.Text
.Fields("Equip Trans2") = Form1.Text24.Text
.Fields("Equip Trans3") = Form1.Text27.Text
.Fields("Equip Trans4") = Form1.Text30.Text
.Fields("Equip Trans5") = Form1.Text38.Text
.Update 'Met a jour
End With
MsgBox ("l'ajout est terminé avec succés"), vbOKOnly + vbInformation, ("Ajout")
End Sub
Avec Equip BTS : champs de la table associé à data1.
Merci