I have this code set up to look for duplicate names, which if a dup is found a message pops up:
If Not IsNull(DLookup("ID", "[tbl]", "[First Name]='" & Forms![frm]![First Name] & "' AND [Last Name] = '" & Forms![frm]![Last Name] & "'"
) Then ...
This works with an exact dup. But if John J. Doe is already entered and John Doe is entered, the duplicate is not found. What's the correct syntax for [First Name] Like Form!frm![First Name]... ?
Thanks!
If Not IsNull(DLookup("ID", "[tbl]", "[First Name]='" & Forms![frm]![First Name] & "' AND [Last Name] = '" & Forms![frm]![Last Name] & "'"
This works with an exact dup. But if John J. Doe is already entered and John Doe is entered, the duplicate is not found. What's the correct syntax for [First Name] Like Form!frm![First Name]... ?
Thanks!