I am trying to import a text file in MSAccess Vba code as below
DoCmd.TransferText acImportDelim, "", "TableName", FileName, True, ""
The file am importing does not have a any headers in it. It is a comma delimited file with just data. The table has column names in it. Now i want to import that file in to this table. When i am trying to import that file using the above code its throwing an error Cannot find col 'X' in the table .(where X is the first row, first column of data in in the input file). Please suugest me some solution or a sample example. Your help is appreciated.
DoCmd.TransferText acImportDelim, , "TableName", FileName.