P
Patti
The following is producing the error "data type mismatch in criteria
expression. " I'm not spotting the problem.
If it matters, the SSN is input with a mask, and the dashes are stored in
the table. Anyone?
Private Sub txt_tbl_Personal_Data_SSN_BeforeUpdate(Cancel As Integer)
If DCount("[SSN]", "tbl_ Personal Data", "[SSN] = " & Me.[txt_tbl_Personal
Data_SSN]) > 0 Then
MsgBox "Record already exists"
Cancel = True
End If
Thanks!
expression. " I'm not spotting the problem.
If it matters, the SSN is input with a mask, and the dashes are stored in
the table. Anyone?
Private Sub txt_tbl_Personal_Data_SSN_BeforeUpdate(Cancel As Integer)
If DCount("[SSN]", "tbl_ Personal Data", "[SSN] = " & Me.[txt_tbl_Personal
Data_SSN]) > 0 Then
MsgBox "Record already exists"
Cancel = True
End If
Thanks!