# Re: BeginTrans,CommitTrans???

Posted by 小v on November 22, 1999 at 08:53:20:

In Reply to: BeginTrans,CommitTrans??? posted by Lai on November 20, 1999 at 11:11:47:

: 可否指点Begintrans与CommitTrans的用法
: 或那些书籍有详细说明.thanks...
on error goto Err
dbengine.begintrans
.....................
...资料库增改删......
.....................
dbengine.committrans
exit sub

Err:
dbengine.rollback '若有错误产生资料就恢复成begineTrans前的状态

大约这样子!

Follow Ups: