Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data type mismatch 1

Status
Not open for further replies.

jelsberry

Programmer
Jul 5, 2001
6
US
I am doing a FindFirst on a dynaset recordset, i get a data type mismatch in criteria expression error, my findfirst statement is as follows:
.FindFirst "[ID] =" & "'" & SessionId & "'"
Where ID is a autonumber and sessionid is a integer, i have also tried sessionid as a long, both give me a mismatch error. Any help would be appreciated.

Thanks
 
Remove the extra quotes:
FindFirst "[ID] =" & SessionId
--Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top