sorry you're still having troubles... based on your previous description, I don't believe you are needing to SUM anything but rather multiply one textbox value by another and put that result into a third textbox, and then repeat this for each record on the continuous form - is this correct?
If so... then paste this code into the OnClick event for a button on your form. (I've used "Command0" assuming that is the name of your button.) OR - you could place this in the After Render event of the form. That way it will fill in your totals without having to do any extra step.
let me know if this solves your problem... if not, then I am still confused as to where these controls appear on your form and what you are trying to do with them
-
-
Private Sub Command0_Click()
-
-
DoCmd.GoToRecord , , acFirst
-
-
Dim i As Integer
-
For i = 1 To Me.Form.RecordsetClone.RecordCount - 1
-
Me.Total.Value = Me.Qty.Value * Costeach.Value
-
DoCmd.GoToRecord , , acNext
-
-
Next
-
-
End Sub
-