简单说就是撤销以前的动作,回复到动作开始前的状态

解决方案 »

  1.   

    一般在VB里如何实现那?
    具体一点的?
      

  2.   

    用事务处理实现!Dim cn As New ADODB.Connection
    Dim rs As New ADODB.Recordset. . . 
    ' Open connection.
    cn.Open' Open titles table.
    rs.Open "SELECT * FROM titles", Cn, adOpenDynamic, adLockPessimistic
    . . .
    ' Begin the transaction.
    rs.MoveFirst
    cn.BeginTrans' User loops through the recordset making changes.
    . . . 
    ' Ask if the user wants to commit all the changes made.
    If MsgBox("Save all changes?", vbYesNo) = vbYes Then
       cn.CommitTrans
    Else
       cn.RollbackTrans
    End If