此贴讨论DBGrid,TDataset,TDataSource,UpdateSql 的使用和交互问题。。。。。 大家请讲:)精彩有分.......... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 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;提示错误: 没有合适的语句。 这是什么问题 请教 FastReport中一个字段值第一页显示不完如何才能让它在第二页接着显示? 强烈抗议 unsigned 在押宝中视正确答案于不顾 【散分】为阿日饯行。一路走好! Delphi7界面乱码问题 INSERT 语句与 COLUMN FOREIGN KEY 约束冲突。 delphi2005或者Delphi9什么时候发布??? 一个小问题 大家现在都用什么收集整理各种资料啊? 怎样在实现一个线程中对另一个线程终止 To 老千,老鱼,瓦泥匠!!!~~~~ 在代码编辑中,输入小数点后为什么不出帮助提示! 救我
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;
提示错误: 没有合适的语句。 这是什么问题 请教