1 2 3 4 5 6 7
| DoCmd.TransferSpreadsheet acImport, , "Temp", "C:\IMPORTATION_TONTINE\RETENUS.XLS", True, "RETENUS!A1:K9000"
'transfert des données vers la table distante
DoCmd.RunSQL "INSERT INTO [OPERATIONS TONTINE] ( DateET, LibET, DepotET, RetraitET, NumRecuET, ID_CpteClt_Select, NumClt, AgEpTont, ASEpTont ) " & _
"SELECT Temp.DateET, Temp.LibET, Temp.DepotET, Temp.RetraitET, Temp.NumRecuET, Temp.ID_CpteClt_Select, Temp.NumClt, Temp.AgEpTont, Temp.ASEpTont FROM Temp"
'suppression table temp
'DoCmd.RunSQL "drop table Temp"
CurrentDb.Execute "DELETE * FROM Temp;" |
Partager