I'm trying to pull a record out of a table.
In running through the code in debug. I cant seem to find out why or how to get rid of these quotes around my number when running this code.
when I step through the code.
Me.txtENumber is showing up as "185"
and
Me.EmpNumber is showing up as 185
I think those quotes are my issue.
Not sure how to get rid of them though. Both items in question are set to numbers.
In running through the code in debug. I cant seem to find out why or how to get rid of these quotes around my number when running this code.
Code:
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[EmpNumber] = " & Me.txtENumber.Value & ""
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
If Me.txtENumber = Me.EmpNumber Then
MsgBox "It Works", vbOKOnly, "Invalid Entry!"
Else
MsgBox "Serial Number Doesn't Exist", vbCritical, "Search Error"
End If
when I step through the code.
Me.txtENumber is showing up as "185"
and
Me.EmpNumber is showing up as 185
I think those quotes are my issue.
Not sure how to get rid of them though. Both items in question are set to numbers.