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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
| Private Sub ListeSociete_Click()
Dim strsql3 As String
Dim strsq14 As String
Dim pro As Variant
Dim aut As Variant
Dim soc As String
Dim Nom As String
Dim pre As String
Dim autA As Variant
Dim dte As String
Dim pro1 As Variant
Dim autA1 As Variant
Dim soc1 As String
Dim Nom1 As String
Dim pre1 As String
Dim aut1 As Variant
Dim dte1 As String
pro = Me.Liste201.Column(1)
aut = Forms!F_gestion_abonne!auto_num
soc = Me.ListeSociete.Column(1)
Nom = Me.ListeSociete.Column(2)
pre = Me.ListeSociete.Column(3)
autA = Me.ListeSociete.Value
dte = DATE
pro1 = Me.Liste201.Column(1)
autA1 = Me.ListeSociete.Value
soc1 = Me.ListeSociete.Column(1)
Nom1 = Me.ListeSociete.Column(2)
pre1 = Me.ListeSociete.Column(3)
aut1 = Forms!F_gestion_abonne!auto_num
dte = DATE
strsql3 = " INSERT INTO T_Suivi ([N°MISSION/PROSPECT],[AUTO],[SOCIETE],[DIR_NOM],[DIR_PRENOM],[AUTO_AJOUT],[DATE] )values('" & pro & "'," & aut & ",'" & soc & "','" & Nom & "','" & pre & "'," & autA & ",'" & dte & "')"
strsql4 = " INSERT INTO T_Suivi ([N°MISSION/PROSPECT],[AUTO_Ajout],[SOCIETE],[DIR_NOM],[DIR_PRENOM],[AUTO],[DATE] )values('" & pro1 & "'," & autA1 & ",'" & soc1 & "','" & Nom1 & "','" & pre1 & "'," & aut1 & ",'" & dte1 & "')"
DoCmd.RunSQL ((strsql3) & (strsq14))
Forms("f_gestion_abonne").Form.frm_Dossierspresentes.Requery
DoCmd.Close acForm, Me.Name
End Sub |
Partager