当我在BeforeUpdateRecord处理更新过程出错时系统提示:试着不先使用BeginTrans而提交或退回事务。
在Dcom服务器中远程数据模块Dm的DatasetProvider1中有以事件:
procedure Tdm.DatasetProvider1UpdateDate(...);
begin
if not ADOCconnection1.InTransaction than
ADOCconnection1.BeginTrans;
end;
procedure Tdm.DatasetProvider1UpdateError(...);
begin
if ADOCconnection1.InTransaction than
ADOCconnection1.RollbackTrans; file://出现exception
end;
当我在BeforeUpdateRecord处理更新过程出错时系统提示:
EOleException:试着不先使用BeginTrans而提交或退回事务。
我应如何处理?