Dim i As Long
Dim rs As Recordset
Set rs = Me.frm折旧总表.Form.RecordsetClone
rs.MoveFirst
For i = 1 To rs.RecordCount
rs.Edit
rs("是否折旧") = True
rs("折旧日期") = Me.日期.Value
rs.Update
rs.MoveNext
Next i
End Sub
命令8:
Private Sub 命令8_Click()
Dim i As Long
Dim rs As Recordset
Set rs = Me.frm折旧总表.Form.RecordsetClone
rs.MoveFirst
For i = 1 To rs.RecordCount
rs.Edit
rs("是否折旧") = False
rs("折旧日期") = Null
rs.Update
rs.MoveNext
Next i
End Sub