为什么这样过滤不行,好奇怪
我编写一个本地查询,数据保存成本地cds格式。我用的是以下格式:
if edtName.Text<>'' then
lsWhere := lsWhere + ' and NAME like ''%'+ trim(edtName.Text)+'%''';
cdsCustomer.Filter := lsWhere ;
cdsCustomer.Filtered :=true;
如果我用姓名的全部内容,如edtName填写“王大名” 就查不到记录,如查询“王大”就可以查询到“王大名”这条记录。我太奇怪了,有没有碰到过这样的问题,help me