mikemcginty
Programmer
I am using 'On Error Resume Next' to not add duplicate records into my database where the next statement is to return to the top of the recordset.
eg
.addnew
rs.columns("XYZ".value = duplicatedata
.update
.movefirst
Loop
where XYZ is a primary key
The error occurs ok on the .update however it also occurs on the .movefirst so that the recordset never moves to the start record.
How do I handle the error so that the duplicate is not added but I can also shift off the duplicate record? I have adOpenKeyset or adOpenDynamic and adLockPessimistic
Mike
When you call out for help in the darkness, and you hear a voice in return, you're probably just talking to yourself again!
eg
.addnew
rs.columns("XYZ".value = duplicatedata
.update
.movefirst
Loop
where XYZ is a primary key
The error occurs ok on the .update however it also occurs on the .movefirst so that the recordset never moves to the start record.
How do I handle the error so that the duplicate is not added but I can also shift off the duplicate record? I have adOpenKeyset or adOpenDynamic and adLockPessimistic
Mike
When you call out for help in the darkness, and you hear a voice in return, you're probably just talking to yourself again!