G
Guest
Below is my procedure for matching user input against a table's contents. The FindFirst DAO recordset method is giving me the error "Data type mismatch in criteria expression". I don't understand why this is happening. The table's field referred to is a text field and the variable from user input is a text string as well. Where am I going wrong
Private Sub GLCrAcctASEND_Exit(Cancel As Integer
Dim db As DAO.Databas
Dim rs As DAO.Recordse
Set db = Access.CurrentD
Set rs = db.OpenRecordset("tbl_GLAcctsSEND-LdgA", dbOpenSnapshot
rs.FindFirst "[GLIntAcctASEND] = " & GLCrAcctASEN
If rs.NoMatch The
. .
Cancel = Tru
End I
End Sub
Private Sub GLCrAcctASEND_Exit(Cancel As Integer
Dim db As DAO.Databas
Dim rs As DAO.Recordse
Set db = Access.CurrentD
Set rs = db.OpenRecordset("tbl_GLAcctsSEND-LdgA", dbOpenSnapshot
rs.FindFirst "[GLIntAcctASEND] = " & GLCrAcctASEN
If rs.NoMatch The
. .
Cancel = Tru
End I
End Sub