Hi,
i use this code to tell my users they have entered a duplicate record. The problem is that this saves the record and the user "Must" delete it but normally they just move on which creates a bunch of duplicates.
How do i turn save "off" ?
thanks!
i use this code to tell my users they have entered a duplicate record. The problem is that this saves the record and the user "Must" delete it but normally they just move on which creates a bunch of duplicates.
How do i turn save "off" ?
Code:
Dim Db As DAO.Database
Dim rs As DAO.Recordset
Set Db = CurrentDb
Set rs = Db.OpenRecordset("Contacts", dbReadOnly)
rs.FindFirst "Homephone=" & Chr(34) & HomePhone & Chr(34)
If Not rs.NoMatch Then
MsgBox "You Have Added a duplicate record, please DELETE this record and run a search.", 64, "Warning"
End If
thanks!