flyboy66102
MIS
This has been stumping me for two days now. I would like to goto a certain record based on input from a text box.
1> datSecondRS.Recordset.FindFirst "[flightID]=txtFlg.text"
I thought line 1 would do it however I get a Run-time Error 3070 "jet database engine does not recongize txtflg.text"
2> datSecondRS.Recordset.FindFirst "[flightID]= '" & txtFlg
.Text & "'"
So then I tried line 2, now I get run-time error 3046 "Data type mismatch in criteria expression"
The text field displays a number (and its formated as a number)if sub in the number "18" in place of txtflg.text
the command works fine. I am using a VB front end to a MS Access 2000 database.
Any suggestions?
Neal
1> datSecondRS.Recordset.FindFirst "[flightID]=txtFlg.text"
I thought line 1 would do it however I get a Run-time Error 3070 "jet database engine does not recongize txtflg.text"
2> datSecondRS.Recordset.FindFirst "[flightID]= '" & txtFlg
.Text & "'"
So then I tried line 2, now I get run-time error 3046 "Data type mismatch in criteria expression"
The text field displays a number (and its formated as a number)if sub in the number "18" in place of txtflg.text
the command works fine. I am using a VB front end to a MS Access 2000 database.
Any suggestions?
Neal