J
Jimmy Warpup
Thanks for your patience. Now the database warns me, but it doesn't delete
the redundant entry. an example may be the best way to illustrate
If the word donner (french for "to give") is already in the database and I
try to re-enter it a nice little message box comes up and says "that word
donner has already been entered."
but then it populates "French_word" field in the form with the word "Donner"
and moves to the next field, English_Translation. I want it to delete the
entery and remain in the "french_word" field or better yet show the origial
entry for donner.
here's the code:
Private Sub French_Word_BeforeUpdate(Cancel As Integer)
A = IsNull(DLookup("[French_Word]", "[Words]", "[French_Word] = """ &
Me![French_Word] & """"))
Select Case A
Case False
MsgBox "The word " & Me!French_Word & " has already been
entered."
Exit Sub
Case Else
Exit Sub
End Select
End Sub
again, i'm over my head. I don't do this very often, any help would be
appriciated?
thx,
Jimmy
the redundant entry. an example may be the best way to illustrate
If the word donner (french for "to give") is already in the database and I
try to re-enter it a nice little message box comes up and says "that word
donner has already been entered."
but then it populates "French_word" field in the form with the word "Donner"
and moves to the next field, English_Translation. I want it to delete the
entery and remain in the "french_word" field or better yet show the origial
entry for donner.
here's the code:
Private Sub French_Word_BeforeUpdate(Cancel As Integer)
A = IsNull(DLookup("[French_Word]", "[Words]", "[French_Word] = """ &
Me![French_Word] & """"))
Select Case A
Case False
MsgBox "The word " & Me!French_Word & " has already been
entered."
Exit Sub
Case Else
Exit Sub
End Select
End Sub
again, i'm over my head. I don't do this very often, any help would be
appriciated?
thx,
Jimmy