P
Playa
When I try to look for a duplicate value in a record I keep getting the
following error....
Run-time error '3464'
Data type Mismatch in criteria expression
here is the code I am using when I get the error....
Dim varResult As Variant
varResult = DLookup("DrawingNum", "tbl_DrawingsAndData", _
"DrawingNum = " &
Me.DrawingNum)
If Not IsNull(varResult) Then
strMsg = "Drawing " & varResult & " Already Exists."
End If
Anyone know what is wrong???? If there is a better way to see if the data in
the text box on the data entry form is already in the table please let me
know.
following error....
Run-time error '3464'
Data type Mismatch in criteria expression
here is the code I am using when I get the error....
Dim varResult As Variant
varResult = DLookup("DrawingNum", "tbl_DrawingsAndData", _
"DrawingNum = " &
Me.DrawingNum)
If Not IsNull(varResult) Then
strMsg = "Drawing " & varResult & " Already Exists."
End If
Anyone know what is wrong???? If there is a better way to see if the data in
the text box on the data entry form is already in the table please let me
know.