Page 1 of 1

Filter and Filtered propertyes

Posted: 28.04.2006, 06:18
by CID
dtmMain->qryProductos->Filter = "Upper(" + sColName + ") like "+ QuotedStr("%"+ AnsiUpperCase(sText)+"%");
dtmMain->qryProductos->Filter = sColName + " = "+ AnsiUpperCase(sText);

That not working. qryProductos is a TZQuery connected to a TZConnection with a SQLite database.

Always the result for that filter is the empty dataset.
why?

Posted: 28.04.2006, 09:44
by btrewern
Use * instead of %.

Regards,

Ben

Posted: 28.04.2006, 17:55
by CID
The '_' is '?' ??

Posted: 28.04.2006, 18:18
by CID
% == *
_ == ?

Thanks Ben