Sum Calculated control

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi,
How would I sum a calculated control?
I have a TextBox "QTotal" for each record on a subform in datasheet view.
This is a calculated control.!
How Can I put a Sum( ) in the Footer of the subform

Regards

John
 
John said:
How would I sum a calculated control?
I have a TextBox "QTotal" for each record on a subform in datasheet view.
This is a calculated control.!
How Can I put a Sum( ) in the Footer of the subform


The aggregate functions (Count, Sum, etc) only operate on
fields in the record source table/query. They are unaware
of controls on a form/report.

That means that you need to use the original calculation
expression in the Sum function. e.g.
=Sum(Price * Quantity)
 
Marshall,
Thanks for your help.


Regards

John

Marshall Barton said:
The aggregate functions (Count, Sum, etc) only operate on
fields in the record source table/query. They are unaware
of controls on a form/report.

That means that you need to use the original calculation
expression in the Sum function. e.g.
=Sum(Price * Quantity)
 
Back
Top