Forum Discussion
AlexanderM
Staff
16 years agoHi Mruttunjay,
You get this error due to an attempt to add a duplicate key.
To prevent it, you can change the line with "Set RecSet..." so that it looks like this:
Set RecSet = AConnection.Execute("SELECT DISTINCT FROM "+ sTableName)