我用TADOQuery控件连接数据库。并在TDBGrid控件中显示。I have inserted a new record, saved it to the database and then try to edit it. .saving it but happend "Row cannot be located for updating. Some values may have been changed since it was last read.".
谢谢。如果能告诉我为什么 我将感激不尽。
谢谢。如果能告诉我为什么 我将感激不尽。
解决方案 »
- dbedit内容更新事件
- 查询问题
- 为什么前面的procedure无法调用后面的procedure?
- 求助~用Delphi如何实现分布式多层电子地图啊??UP者都有分!!!
- 放分200恭喜 menggirl 做版主 -- 饭桶
- 怎么在delphi里,调用浏览器打开一个网站呢?
- 一个基本小问题,50分在线等着送你。(在线急等)
- 有关Delphi错误问题的解决请教!
- 如何控制treeview中两个节点的间距?
- 帮忙看看,错在哪里?
- 有关webbrowser控件打开网页时内容的复制粘贴问题........急!
- indy用得比较熟的麻烦帮个忙。为什么idtcpclient的readln(#$A,5000)调置timeout的值它却仍然会无限期地等下去。是不是indy的BUG啊?我该
在阅读李维的书后我自己写了个通用函数以用来解决类似问题
procedure Tmdata.condtable(adoc_tmp:TADOConnection;adoq_tmp: TADOQuery;sort:byte);
var pty:property_;
pties:properties;
icount:integer;
begin if sort=1 then
begin
adoq_tmp.active:=false;
end;
adoq_tmp.Connection:=adoc_tmp;
adoq_tmp.Active:=true;
pties:=adoq_tmp.Recordset.Properties;
for icount:=0 to pties.Count-1 do
begin
pty:=pties.item[icount];
if pty.name ='Update Criteria' then
pty.Value:=0;
end;end;
我一直没搞定,关注