sakura.saki
07-05-2012, 08:42 AM
Hi guys,
I have the following code which imports one tab which is called "Cor" in an excel sheet into the database, there is no error messege, but somehow after running the code, there is always some more tables created, named as "Cor$_ImportErrors"
any idea how to make it work normal? thanks!
Sub AccessToExcel()
DoCmd.TransferSpreadsheet acImport, 8, "teams CW1", "P:\Fraib\Securities\Sales\status report\access tables to excel.xls", True, "Cor!"
DoCmd.SetWarnings False
DoCmd.Rename "teams CW", acTable, "teams CW1"
DoCmd.SetWarnings True
End Sub
I have the following code which imports one tab which is called "Cor" in an excel sheet into the database, there is no error messege, but somehow after running the code, there is always some more tables created, named as "Cor$_ImportErrors"
any idea how to make it work normal? thanks!
Sub AccessToExcel()
DoCmd.TransferSpreadsheet acImport, 8, "teams CW1", "P:\Fraib\Securities\Sales\status report\access tables to excel.xls", True, "Cor!"
DoCmd.SetWarnings False
DoCmd.Rename "teams CW", acTable, "teams CW1"
DoCmd.SetWarnings True
End Sub