One method I like to use is populating a recordset with a SQL query on the fields that I want to find a duplicate on. Then I check the recordset's RecordCount property, to see if it's 0 or greater than 0. (without moving to a different record, the record count will only be 1 if there's more than one record. If you try moving, and there are no records however, you will get an error.
' Assume tbl1 is the table I'm searching for records in.
' The fields I'm searching for duplicate in are fld1 and fld2.
' The corresponding controls on the form are txtFld1 and txtFld2
Dim dbs as Database
Dim rst as Recordset
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("SELECT * FROM tbl1 WHERE (([tbl1].[fld1]) = '" _
& Me.txtFld1.Value & "

AND (([tbl1].[fld2]) = '" & Me.txtFld2.Value & "

;"
If rst.RecordCount > 0 Then ' this is a duplicate entry
' Enter code here
Else ' This is not a duplicate entry
' Enter code here
End If
Set rst = Nothing
Set dbs = Nothing