Sum Calculated control

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
 
M

Marshall Barton

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)
 
J

John

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

Top