with ADOTable1 do begin
First;
while not Eof do begin
Edit ;
ADOTable1.FieldByName('售单号').AsInteger:= 121;
Next;
end;
end;
ADOTable1.UpdateBatch();
First;
while not Eof do begin
Edit ;
ADOTable1.FieldByName('售单号').AsInteger:= 121;
Next;
end;
end;
ADOTable1.UpdateBatch();
解决方案 »
- 很急,对打印不太熟, quickrep如何打印准考证?
- excel的Range.Borders.LineStyle := 1;//单元格加外框, 如果只在单元的底部加框线,上部,左侧和右侧不加框线,参数应如何设置?
- 在线等 有结果马上结贴 一个DbComboBox控件添加ITEMS的问题 很简单的啊
- 怎样获得对象自身的拷贝?
- 如何实现不同语言的界面切换?
- 那位大侠有用IdPOP3收邮件的原码吗?100分!!!在线等待,
- 高手帮忙!!!!网络聊天室连接问题?
- 谁能翻译一下
- SOS
- 请教各位高手一个问题,请问谁知道有开发制作CHM格式帮助的SDK开发包!(100分求教)
- 怎样检测USB口有什么插入移动存储器,并判断是在哪个盘
- 关于MainManue,快来抢分
ADOTable1.Post;
所以错不在这而是,最后一条记录
根本没有
ADOTable1.FieldByName('售单号').AsInteger:= 121;
的操作谢指教
把while not Eof do begin
改成for i := 0 to ADOTable1.Recordcount - 1 do begin试试
同意楼顶的朋友
用
while not Eof do begin
出现最后一条记录没有更新改成for i := 0 to ADOTable1.Recordcount - 1 do begin提示eof 出错
First;
for i := 0 to ADOTable1.Recordcount - 1 do begin
Edit ;
ADOTable1.FieldByName('售单号').AsInteger:= 121;
if not Eof then Next;
end;
end;
ADOTable1.UpdateBatch();
别的没有变吧?
问题出现在
你的批处理到了最后一条上
你把
eof该该
后把
ADOTable1.UpdateBatch();
移位
另外,EOF和最后一条记录好像不是一码事吧?