Bonsoir je voudrais faire un ajout dans une table:
type incompatible
le probleme se situe ici pourtant le champ dans la base de donnée est bien de type date
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 Public Sub PROCEDURE_AJOUT() With frm_child1_cons.data_eleves.Recordset .AddNew !Nom = frm_child1_cons.txt_consul(0) !Prenom = frm_child1_cons.txt_consul(1) !Classe = int_val_annee !Date_naissance = CDate(frm_child1_cons.txt_consul(3)) !Date_inscription = CDate(frm_child1_cons.txt_consul(4)) !Sexe = int_val_sexe !Adresse = frm_child1_cons.txt_consul(5) !cp = int_val_cp !localite = int_val_cp !Telephone = frm_child1_cons.txt_consul(9) !Gsm = frm_child1_cons.txt_consul(10) End With End Sub
merçi d avance
Partager