AdoTable1.filter:='(idno4=1) or (idno4=1) and (idno=3)'
解决方案 »
- 如何在TDBGrid显示进度条
- Excel导入StringGrid,只有前五行有数据。
- 谁来帮我写个新建N个文件夹的函数
- 初学delphi,几个题目高手帮我看下
- 用什麽函數清除時間控件裏面日期?
- 高分求教:Delphi6里的object Inspector网格界面怎么实现?
- 求助有关FastReport报表问题,致谢重谢!!!
- 大家好,请问在DELPHI中#13和#10是表示什么含义的?
- 创建文件夹时,为什么文件夹名是英文时会报I/O error183错误?
- 关于多层系统的问题请高手指点!望多指教!!!
- 如何在线程1中关闭线程2?
- 原来切换到英文输入法是通过CTRL+SPACE的,但现在只能通过CTRL+SHIFT+SPACE了,怎么改过来??
对不起,应该是这个
有可能是你的filtered的属性问题吧
(idno4=1) and (idno=3)这样的数据,加个()试试
idno4是字段名。
'(idno4=1) or (idno4=1) and (idno4=3)'
相当于(应该是)
'(idno4=1) or ((idno4=1) and (idno4=3))',
(如果“要追究结果怎么”的话,因为同一条记录中的idno4不可能既等于1又等于3,所以肯定是没有结果)
AdoTable1.filter:='idno4='+IntTostr(1)+' or idno4='+inttostr(1)+' and idno4='+inttostr(3);
是否和
AdoTable1.filter:='(idno4=1) or (idno4=1) and (idno4=3)';
一样