M
M Skabialka
I would like to bring an Excel spreadsheet into Access where I will analyze
it line by line and create multiple tables from it. Worksheet rows have
many different kinds of information, which I can extract logically in
Access.
I can copy and paste from Excel to Access, but when I try to use code I get
errors
strTable = "tblStatus"
strPathFile = "C:\import.xls"
WorkSheetName = "Dallas"
blnHasFieldNames = False
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, _
strTable, strPathFile, blnHasFieldNames, Range:=WorkSheetName &
"!"
2391 Field 'F1' doesn't exist in destination table 'tblStatus.'
I just want to dump the whole worksheet into Access, matching columns and
rows without regard to original field names, then do my analysis.
In Excel I imported it into another worksheet to remove all formatting,
merged cells, etc, and that is what I want to import into Access.
How can I do that without getting errors?
it line by line and create multiple tables from it. Worksheet rows have
many different kinds of information, which I can extract logically in
Access.
I can copy and paste from Excel to Access, but when I try to use code I get
errors
strTable = "tblStatus"
strPathFile = "C:\import.xls"
WorkSheetName = "Dallas"
blnHasFieldNames = False
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, _
strTable, strPathFile, blnHasFieldNames, Range:=WorkSheetName &
"!"
2391 Field 'F1' doesn't exist in destination table 'tblStatus.'
I just want to dump the whole worksheet into Access, matching columns and
rows without regard to original field names, then do my analysis.
In Excel I imported it into another worksheet to remove all formatting,
merged cells, etc, and that is what I want to import into Access.
How can I do that without getting errors?