R
Randy
I have seen this question many times, but I cant get it to work. I have a
tble named "Accounts" with a fld of "Cert_ID". The field "Cert_ID" will
have some null values, but what ever data is there can not be duplicated.
This is a text field. The forms name is "Account" and the textbox name is
"Cert_ID" with the record source of "Cert_ID" I have seen an several
examples of preventing duplicates such as below but cant get it to work.
Any help is appreciated...Thanks..Randy
If Not IsNull(DLookup("Cert_ID", "Accounts", _
"[Cert_ID]=" & "'" &
Me.Cert_ID & "'")) _
Then
MsgBox "Record Already exists!"
' Cancel = True
Else: MsgBox "Looks Good"
End If
tble named "Accounts" with a fld of "Cert_ID". The field "Cert_ID" will
have some null values, but what ever data is there can not be duplicated.
This is a text field. The forms name is "Account" and the textbox name is
"Cert_ID" with the record source of "Cert_ID" I have seen an several
examples of preventing duplicates such as below but cant get it to work.
Any help is appreciated...Thanks..Randy
If Not IsNull(DLookup("Cert_ID", "Accounts", _
"[Cert_ID]=" & "'" &
Me.Cert_ID & "'")) _
Then
MsgBox "Record Already exists!"
' Cancel = True
Else: MsgBox "Looks Good"
End If