I have not tested this, and my code has never been known to work the first time :(, but this should be a good start. It's the Click event of a button named Sum.
Private Sub cbSum_Click()
Dim db As Database, rsMo As Recordset, rsYr As Recordset, i As Integer
Set db = CurrentDb()
i = 1...