G
Guest
I have a form with a text boxes that accept input from users. I have one text box that search to see if the records already exists. here is the code
Private Sub Medicalrecord_BeforeUpdate(Cancel As Integer
If DCount("*", "TableOne", "Medicalrecord = '" & Me!Medicalrecord & "'") > 0 The
MsgBox "Duplicate Value
Cancel = Tru
End I
End Su
My question: Can I replace the "MsgBox statement" with code to bring up the record instead of just saying the "Duplicate Value" Thanks
Private Sub Medicalrecord_BeforeUpdate(Cancel As Integer
If DCount("*", "TableOne", "Medicalrecord = '" & Me!Medicalrecord & "'") > 0 The
MsgBox "Duplicate Value
Cancel = Tru
End I
End Su
My question: Can I replace the "MsgBox statement" with code to bring up the record instead of just saying the "Duplicate Value" Thanks