Sum of a field

  • Thread starter Thread starter James Franklin
  • Start date Start date
J

James Franklin

Hi,

I might be being thick here, but what is the easiest way in code to return
the sum of values from a field in my form's recordset?

I have a continuous form, and I want to sum the values of a field as a
parameter into another function. Normally I would simply add a control with
a Control Source of "=Sum([FieldX])" and then use the control's value in my
function. However, in this case, I do not want to use an extra control.

Is there a simple way of getting this value, without initialising additional
recordsets etc.?

Thanks,
Jim F.
 
Back
Top