Page 1 of 1

Filter with integer field and LIKE

Posted: Tue 27 May 2008 15:09
by ply
I neet to apply 'LIKE' filter to integer field:

client_id LIKE '%65%'

But error occurs: "Could not convert variant of type (String) into type (Double)"

Posted: Wed 28 May 2008 07:49
by jkuiper_them
I neet to apply 'LIKE' filter to integer field:

client_id LIKE '%65%'

But error occurs: "Could not convert variant of type (String) into type (Double)"
What you trying to do is not logical and isn't an iso standard of SQL.
The option LIKE is implemented for search on strings, so you can simular founded records. For integers, floats, decimals, and dates the option BETWEEN will be used. Or set your integerfield ti a stringfield. It's your choice.