G
Guest
Hello!!!!
I would like to find out how to fix this error that shows up on the "Before
If Not IsNull(DLookUp("[MyFIELD]",
, _
"[MyFIELD] = '" & Me!txtMy Field& "'") Then
MsgBox "This MyFIeldhas already been entered", vbOKOnly
Cancel = True
End If
End Sub
Specifically, the error showed reads like this:"Run- Time error 2465
Microsoft access can't find the field 'l' referred to in your expression"
I have tried everything I know but obviously My understanding of this is
quite limited....
I would like to find out how to fix this error that shows up on the "Before
Private Sub txtMy Field_BeforeUpdate(Cancel as Integer)Update to prevent duplicate entries". I am presently
using the following code:
If Not IsNull(DLookUp("[MyFIELD]",
"[MyFIELD] = '" & Me!txtMy Field& "'") Then
MsgBox "This MyFIeldhas already been entered", vbOKOnly
Cancel = True
End If
End Sub
Specifically, the error showed reads like this:"Run- Time error 2465
Microsoft access can't find the field 'l' referred to in your expression"
I have tried everything I know but obviously My understanding of this is
quite limited....