(Access 2010).
I'm using the following vb code to import from a csv file:
DoCmd.TransferText acImportDelim, strFileImportSpec, strTableNameImport, gb_strPathAndFileName
Everything imports fine yet I always get the standard 'Duplicate records violation MS Access error message':
'MS Access was unable to appand all the data...2 record(s) were deleted, and 0 records were lost due to key viloations....'
There are no constraints in the destination table and the records are always imported ok.
I don't get the error msg when I import vis the 'External Data' on the menu bar.
Trired it with several csv files and get the same eror msg.
It was working fine last week!
I'm using the following vb code to import from a csv file:
DoCmd.TransferText acImportDelim, strFileImportSpec, strTableNameImport, gb_strPathAndFileName
Everything imports fine yet I always get the standard 'Duplicate records violation MS Access error message':
'MS Access was unable to appand all the data...2 record(s) were deleted, and 0 records were lost due to key viloations....'
There are no constraints in the destination table and the records are always imported ok.
I don't get the error msg when I import vis the 'External Data' on the menu bar.
Trired it with several csv files and get the same eror msg.
It was working fine last week!
Last edited: