E
ecwhite
Hello,
Please DCount function in the form code is not recognizing the criteria, it
keeps inserting the record even when the patient id number has already been
inserted in the database. Each patient ID should only be in the Database once
and no duplicates.
q_duplicate_idnbr_lookup - This is a query
If DCount("[table1.id_nbr]", "table1", "q_duplicate_idnbr_lookup" =
Me.id_nbr) = 0 Then
insert new record
else
msg " No duplicate"
End If
Thanks for your help.
Please DCount function in the form code is not recognizing the criteria, it
keeps inserting the record even when the patient id number has already been
inserted in the database. Each patient ID should only be in the Database once
and no duplicates.
q_duplicate_idnbr_lookup - This is a query
If DCount("[table1.id_nbr]", "table1", "q_duplicate_idnbr_lookup" =
Me.id_nbr) = 0 Then
insert new record
else
msg " No duplicate"
End If
Thanks for your help.