ADO Find using wildcard on an integer
I have an ado recordset which contain order id's (the field is defined in the database as an integer). In my application, I want to find, for example, the first order id that begins with a 2. When I try to execute the following statement :
rs.find "ID LIKE '2%'"
I get the error:
Find cannot be performed over the specified column, or compare operator is invalid.
I experimented, and it appears that the wildcard does not work on an integer field.
Does anyone know a way around this?
Thanks!!
|