Anyone can point to me what is wrong with this statement?
If DCount("*", "tbl_Demographic", "[DOB] = '" & Me.DOB & "'") > 0 Then
Msgbox "NameExist"
End If
DOB = Date Of Birth (e.g. 7/1/1956)
I have a Form with a field DOB but whenever I entered a new DOB, I would like it to look up if the same DOB exists in another table (Demographic)
Thanks in advance.
Sincerely,
Perry