L
lowhands
Unregistered / Unconfirmed
GUEST, unregistred user!
极菜的问题!!!
我用access库+Tadotable+Tdatasourse
为什么会出现:the specifiled row could not be located for updating.some values may
heve been changed since it was last read! 的错误!!!
我的表里有一个子段id设为自动增量的啊~~~~~~~~~
救命啊:(
//增加
procedure TForm_yhgl.addClick(Sender: TObject);
begin
at1.Append ;
at1['username']:=' ';
at1['level']:='1';
at1.edit;
at1.post;
end;
//删除
procedure TForm_yhgl.delClick(Sender: TObject);
begin
if Application.MessageBox(
'真的想删除当前用户信息吗?',
'警告!',
MB_OKCANCEL + MB_DEFBUTTON1) = IDOK then
if not(at1.eof) then
begin
at1.delete;
end;
end;
//确定
procedure TForm_yhgl.okClick(Sender: TObject);
begin
if not(at1.eof) then begin
at1.edit;
at1.post;
end;
end;
//取消
procedure TForm_yhgl.canClick(Sender: TObject);
begin
at1.cancel;
end;
我用access库+Tadotable+Tdatasourse
为什么会出现:the specifiled row could not be located for updating.some values may
heve been changed since it was last read! 的错误!!!
我的表里有一个子段id设为自动增量的啊~~~~~~~~~
救命啊:(
//增加
procedure TForm_yhgl.addClick(Sender: TObject);
begin
at1.Append ;
at1['username']:=' ';
at1['level']:='1';
at1.edit;
at1.post;
end;
//删除
procedure TForm_yhgl.delClick(Sender: TObject);
begin
if Application.MessageBox(
'真的想删除当前用户信息吗?',
'警告!',
MB_OKCANCEL + MB_DEFBUTTON1) = IDOK then
if not(at1.eof) then
begin
at1.delete;
end;
end;
//确定
procedure TForm_yhgl.okClick(Sender: TObject);
begin
if not(at1.eof) then begin
at1.edit;
at1.post;
end;
end;
//取消
procedure TForm_yhgl.canClick(Sender: TObject);
begin
at1.cancel;
end;