[Solved] - Access VBA error 3349
Hi, I am getting this error when running a macro I have which imports a CSV into a Table and the majority of the time it works however sometimes I get the VBA error 3349 "you cannot record changes because a value you entered violates the settings defined for this table or list".
So far the only way around this issue is to split the file into smaller batches and import them.
The code I use is:
This issue is very confusing as it only happens every other day and it will import the data when its split up, so I am unsure of whether it is a data issue.
Has anyone else had this issue? or know why this might be happening?
Thanks,
Jess
Hi, I am getting this error when running a macro I have which imports a CSV into a Table and the majority of the time it works however sometimes I get the VBA error 3349 "you cannot record changes because a value you entered violates the settings defined for this table or list".
So far the only way around this issue is to split the file into smaller batches and import them.
The code I use is:
Code:
'Import the file
Do While Len(strFile) > 0
strPathFile = strPath & strFile
DoCmd.TransferText acImportDelim, , strTable, strPathFile, blnHasFieldNames
'DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, _
strTable, strPathFile, blnHasFieldNames
strFile = Dir()
Loop
Has anyone else had this issue? or know why this might be happening?
Thanks,
Jess

Last edited: