Private Sub 命令0_Click()
Dim MyRS As Recordset, LastSum As Long
Set MyRS = CurrentDb.OpenRecordset("table1")
If Not MyRS.EOF Then
LastSum = MyRS("ze")
MyRS.MoveNext
End If
Do Until MyRS.EOF
LastSum = LastSum - MyRS("jf") + MyRS("df")
MyRS.EditMode
MyRS("ze") = LastSum
MyRS.Update
MyRS.MoveNext
Loop
End Sub