在用query.Delete或edit时就出现Project Project1.exe raised exception class EDBEngineError with message 'couldn't perform the edit because another user changed the record '......怎么办?原代码如下:query.requestlive是设为TRUE的.procedure TForm1.Button2Click(Sender: TObject);
begin
query1.Close;
query1.open;
query1.Edit;
query1.Post;
showmessage('更新完毕');
query1.Close;
end;procedure TForm1.Button3Click(Sender: TObject);
begin
query1.Close;
query1.Open;
messagedlg('确认删除该记录?',mtwarning,[mbyes],0);
query1.Delete;
query1.Post;
query1.Close;
end;