G
Guest
I am trying to automate system.
I have button 'Import Excel'.
Here is my code behind the button:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel4,
"tblImportData", "C:\Data.xls", True
When I click on Command button, i get this message error:
"Field 'Name' doesn't exist in destination table 'tblImportData' ."
But I do have a field name in this table.
Please tell me What is wrong with this code or tell me any other way to do it.
Thank you so much.
I have button 'Import Excel'.
Here is my code behind the button:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel4,
"tblImportData", "C:\Data.xls", True
When I click on Command button, i get this message error:
"Field 'Name' doesn't exist in destination table 'tblImportData' ."
But I do have a field name in this table.
Please tell me What is wrong with this code or tell me any other way to do it.
Thank you so much.