I hope someone can help, i have used the following code from thread 705-892728
Dim ImportFile
ImportFile = Dir("C:\Program Files\Alcatel\A4400 Call Center Supervisor\Excel\DAILY\Agents\18_09_06\*")
Do While ImportFile <> ""
DoCmd.TransferSpreadsheet acImport, 8, "tblInitialAgentCcsData", ImportFile, False
ImportFile = Dir
Loop
the problem i have is that the import file line works as it gives the first file name correctly but i then get a error on the docmd.transferspreadsheet line saying that the file name can not be found
Dim ImportFile
ImportFile = Dir("C:\Program Files\Alcatel\A4400 Call Center Supervisor\Excel\DAILY\Agents\18_09_06\*")
Do While ImportFile <> ""
DoCmd.TransferSpreadsheet acImport, 8, "tblInitialAgentCcsData", ImportFile, False
ImportFile = Dir
Loop
the problem i have is that the import file line works as it gives the first file name correctly but i then get a error on the docmd.transferspreadsheet line saying that the file name can not be found