M
Mark Stones
Guest
Hello, I would appreciate it if someone could help me with a problem i have.
I have a subform which i use to enter new data. This form has a indexed primary key (serial Number) and a message box pops up everytime I enter a duplicate value. I have tried using the following code for error handling to correct this but it does not work;
Err_done_click:
Select Case Err
Case 684
MsgBox "Duplicate", vbOKOnly, "Duplicate"
Case Else
MsgBox Err.Number
Resume Exit_done_Click:
End Select
Any Ideas?
Thank you
Mark
I have a subform which i use to enter new data. This form has a indexed primary key (serial Number) and a message box pops up everytime I enter a duplicate value. I have tried using the following code for error handling to correct this but it does not work;
Err_done_click:
Select Case Err
Case 684
MsgBox "Duplicate", vbOKOnly, "Duplicate"
Case Else
MsgBox Err.Number
Resume Exit_done_Click:
End Select
Any Ideas?
Thank you
Mark