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 temp As String
Me.DrawingNum.SetFocus
temp = DLookup("[DrawingNum]", "tbl_DrawingsAndData", _
"[DrawingNum]=" &
Me.DrawingNum.Text)
Me.DrawingNum.SetFocus
If Me.DrawingNum.Text = temp Then
MsgBox "This Drawing Control Already Exists, Please See View Drawing
Controls"
Exit Sub
End If
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 temp As String
Me.DrawingNum.SetFocus
temp = DLookup("[DrawingNum]", "tbl_DrawingsAndData", _
"[DrawingNum]=" &
Me.DrawingNum.Text)
Me.DrawingNum.SetFocus
If Me.DrawingNum.Text = temp Then
MsgBox "This Drawing Control Already Exists, Please See View Drawing
Controls"
Exit Sub
End If