Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SUM TOTAL IN FORM FOOTER

Status
Not open for further replies.

SeanB

Programmer
Jul 19, 2001
70
0
0
US
I am having a similar problem where in the Form Footer I want to sum the textbox OrderTotal in the detail section. I am using a textbox in the Form Footer and when I do a =Sum(OrderTotal) I am getting #Error. Any ideas. Thanks all
 
This is straight from the on line help. Perhaps it will solve your problem

About computing a total for a calculated control on a form or report

When computing a total with an aggregate function such as Sum or a domain aggregate function such as DSum, you can't use the name of a calculated control in the Sum function. You must repeat the expression in the calculated control. For example:
=Sum([Quantity]*[UnitPrice])
However, if you have a calculated field in an underlying query, for example,
=ExtendedPrice: [Quantity]*[UnitPrice]

you can use the name of that field in the Sum function, as shown here:
=Sum([ExtendedPrice]) Tyrone Lumley
augerinn@gte.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top