I have a csv file.
I want to transfer the data in this file into a new table in Access.
I currently have this code in VBA:
filename is "C:\Temp\xyz.csv"Code:Public Sub ImportExcelSpreadSheet(fileName As String, tableName As String) DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel12, tableName, fileName, True End Sub
tablename is "xyz"
but I get an error saying "External table is not in the expected format"