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)
 

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