大家请讲:)
精彩有分..........

解决方案 »

  1.   

    procedure Tb_billcxform.DBGrid1CellClick(Column: TColumn);
    begin
      if Column.FieldName='审核' then
      begin
        tmpQry.Edit;
        if tmpQry.FieldByName('审核').Value='√' then
          tmpQry.FieldByName('审核').Value:=' '
        else
          tmpQry.FieldByName('审核').Value:='√';
      end;
    end;
    在DBGrid1 里单击一个单元个就打上对钩(此时不update 数据库),我想当窗体close 时,
    进行update动作,为此我做了以下改动:
    tmpQry.requestLive:=true;
    tmpQry.CatchedUpate:=true;
    并添加updateSql1 组件,我少做了什么为什么不能更新数据库。
    procedure Tb_billcxform.FormClose(Sender: TObject;
      var Action: TCloseAction);
    begin
      tmpQry.ApplyUpdates;
      tmpQry.Refresh;
      tmpQry.RequestLive:=false;
      tmpQry.CachedUpdates:=false;
    end;
    提示错误: 没有合适的语句。  这是什么问题 请教