我意思是我功能是先查询然后再修改该数据.

解决方案 »

  1.   

    用FILTER呀。
    举个例子
                if table1.active then
                   table1.active:=false;   
                    with table2 do
                           begin
                     filter:='字段='+变量或者其他+'';
                     filtered:=true;
                            end;
                   table1.active:=true;
      

  2.   

    上面写错个地方
    用FILTER呀。
    举个例子
                if table1.active then
                   table1.active:=false;   
                    with table1 do
                           begin
                     filter:='字段='+变量或者其他+'';
                     filtered:=true;
                            end;
                   table1.active:=true;
      

  3.   

    先table1.locate('fieldname',str1,[])定位;
    再修改table1.edit;
    然后table1.post;
      

  4.   

    这么简单也问有没有看过help啊?:)