traitement d'un fichier d'une liste d'un formulaire:
Private Sub L_Fichier_DblClick(Cancel As Integer)
Dim nomb As String
Dim ctl As String
Dim cmd As String
Dim leChemin As String
Dim MyName As String
' Dim MyPath As String
' Dim Ligne As Integer
' Dim Ligne2 As Integer
DoCmd.SetWarnings False
DoCmd.RunSQL "Drop Table Import"
DoCmd.RunSQL "Drop Table Theme"
leChemin = "e:BaseImport"
ctl = leChemin & Me.L_Fichier.Value
DoCmd.TransferSpreadsheet acImport, 8, "Import", ctl, True, "Import"
DoCmd.TransferSpreadsheet acImport, 8, ...


News de Access
