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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top