D databox Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-21 #1 在ACCESS中,我有几个表要修改资料,但是我希望统一提交,若有问题,再统一rollback, 请问在ACCESS中能做到吗?怎样做?
L lzliang Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-22 #2 TADOConnection.BeginTrans; try ......(要修改的资料) TADOConnection.CommitTrans;{修改成功} except on EInOutError do 出错处理 TADOConnection.RollbackTrans; end; 判断:TADOConnection.InTransaction
TADOConnection.BeginTrans; try ......(要修改的资料) TADOConnection.CommitTrans;{修改成功} except on EInOutError do 出错处理 TADOConnection.RollbackTrans; end; 判断:TADOConnection.InTransaction