Share via

Summing Fields in a Continuous Form

Anonymous
2014-07-25T01:53:39+00:00

Hello,

I have a continuous form and I want to sum the values at the form footer, please see attached image to help explain it.

Could someone please help me out.

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Duane Hookom 26,825 Reputation points Volunteer Moderator
2014-07-28T03:58:18+00:00

Please provide the Control Source of the text box that shows error. What is its name?

What happens if you create a brand new form with the same record source and a single text box in the form footer with a control source of:

=Sum([Total Cost])

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

11 additional answers

Sort by: Most helpful
  1. Anonymous
    2014-07-25T10:49:39+00:00

    Also, is Total Quote a computed control in the form, rather than a computed column in the query?  If the former you should apply the Sum operator to the expression used as the computed control's ControlSource property.  To take a simple example, if a form included a comouted control in its detail section with a ControlSource property:

    =[UnitPrice]*[Quantity]

    then to sum the values in the footer the expression would be:

    =Sum([UnitPrice]*[Quantity])

    In situations like this I would normally use a computed column in the query rather than a computed control in a form.  A control in the detail section can then be bound to the column and summed in the way you are currently attempting.

    Was this answer helpful?

    0 comments No comments
  2. Duane Hookom 26,825 Reputation points Volunteer Moderator
    2014-07-25T05:19:44+00:00

    Is [Total Quote] a numeric field in your form's record source? When viewed in data sheet, is it right or left aligned?

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2014-07-25T03:27:13+00:00

    What are the control sources of the text boxes that are showing #Error?

    Your issue might be that you are attempting to sum a text box control. Your control sources should use only the names of fields in your form's record source.

    Thanks Dhookom,

    I am using a query, as my record source.

    my control sources are in my record source, but it comes up with an error.

    I am using =sum([total quote])

    Was this answer helpful?

    0 comments No comments
  4. Duane Hookom 26,825 Reputation points Volunteer Moderator
    2014-07-25T02:28:41+00:00

    What are the control sources of the text boxes that are showing #Error?

    Your issue might be that you are attempting to sum a text box control. Your control sources should use only the names of fields in your form's record source.

    Was this answer helpful?

    0 comments No comments