when tried to update a record added in a recordset to the database i reived duplicate record error i am not able to troubleshoot how to detect this error within application

on error resume next , statement leaves the error not handled and database without updation

I am using asp for using database