Hello-
I have a short section of code to load roughly a dozen .csv files into a table, but when I run the code I get an error for 'field 15 not found in destination table'
I think what is happening is Excel somehow marks column 15 as used (having data) despite it being empty, so Access thinks there is data in there as well.
What is the easiest way to work around this? Can I limit the import to only the first 14 columns? Here is a sample of what I'm using...
Sub importJuly2010Data()
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, "07-2010", "\\Server\Share\Folder\Filename.xls", True
... (repeated several times for different filenames)...
End Sub
If I just add an extra column to the table, format as text and label as "error suppression" this should work, but seems like a hack way of working around it. I'd rather learn the proper way.![]()