R
Randy
I have been trying for weeks to come up with a way to prevent duplicate
entries through the form. Several other trys on the newsgroups have proven
unsuccessful. I have a tbl of "Account" with a field of [Cert_ID]. I have
a form named "Accounts" with a texbox named "Cert_Id" and control sourcee of
"Cert_ID" The "Cert_ID" field will contain some null values, no data, but I
do need to make sure that any data entered is not a duplicate. Below I
pasted from the forms newsgroup but havn't been able to get it to work..I
would appreciate any help..Thanks...Randy
Private Sub Cert_ID_BeforeUpdate(Cancel As Integer)
If IsNull(DLookup("Cert_ID", "Account", "[Cert_ID]=" _
& [Forms]![Accounts]![Cert_ID])) Then
MsgBox "This Certificate Number has Already Been Entered"
Cancel = True
End If
End Sub
entries through the form. Several other trys on the newsgroups have proven
unsuccessful. I have a tbl of "Account" with a field of [Cert_ID]. I have
a form named "Accounts" with a texbox named "Cert_Id" and control sourcee of
"Cert_ID" The "Cert_ID" field will contain some null values, no data, but I
do need to make sure that any data entered is not a duplicate. Below I
pasted from the forms newsgroup but havn't been able to get it to work..I
would appreciate any help..Thanks...Randy
Private Sub Cert_ID_BeforeUpdate(Cancel As Integer)
If IsNull(DLookup("Cert_ID", "Account", "[Cert_ID]=" _
& [Forms]![Accounts]![Cert_ID])) Then
MsgBox "This Certificate Number has Already Been Entered"
Cancel = True
End If
End Sub