ajking
Technical User
- Aug 13, 2002
- 229
I have a project where I take an excel form with three sheets and import the data into access. I have got it working using:
DoCmd.TransferSpreadsheet acImport, 8, "tbTechnical", "C:\CNS Excel Import\Email_CNS.xls", True, "ExportTechnical"
DoCmd.TransferSpreadsheet acImport, 8, "tbScan", "C:\CNS Excel Import\Email_CNS.xls", True, "ExportScan"
DoCmd.TransferSpreadsheet acImport, 8, "tbEmail", "C:\CNS Excel Import\Email_CNS.xls", True, "ExportEmail"
However the first step at the moment is to manually open the excel form so the transfer can take place and then close the excel form manually.
I have been trying to automate the process with little success. If anyone out there can help I would be most grateful as I am down to the last hundred hairs on my head ;-). TIA
'Life is what happens to you while you are busy making other plans' John W. Lennon 1940-1980
DoCmd.TransferSpreadsheet acImport, 8, "tbTechnical", "C:\CNS Excel Import\Email_CNS.xls", True, "ExportTechnical"
DoCmd.TransferSpreadsheet acImport, 8, "tbScan", "C:\CNS Excel Import\Email_CNS.xls", True, "ExportScan"
DoCmd.TransferSpreadsheet acImport, 8, "tbEmail", "C:\CNS Excel Import\Email_CNS.xls", True, "ExportEmail"
However the first step at the moment is to manually open the excel form so the transfer can take place and then close the excel form manually.
I have been trying to automate the process with little success. If anyone out there can help I would be most grateful as I am down to the last hundred hairs on my head ;-). TIA
'Life is what happens to you while you are busy making other plans' John W. Lennon 1940-1980