你的编程风格真是别具一格啊!试试在
        table1.filter:='glr='+'''孟燕'''+' and dw_id='+'''999''' ;        table1.Filtered:=true;
之前添加一句
        Filter := false