Adding the sum of a field

C

Christopher Buxton

My report prints a receipt with all the customers details in the page header.
The products purchased are in the details section of the report. The fields
used for each product are 'product number', 'description' and 'price'.

In the page footer I would like to display the sum of the 'price' field,
this is the total price for all purchases. What is the best way to do this?

Thanks
 
D

Duane Hookom

The best way is to use a group or report footer for the sums. Use a text box
with a control source of:
=Sum([Price])
 
C

Christopher Buxton

this does not work. should it still work even though the field is in currency
format.


thanks

Duane Hookom said:
The best way is to use a group or report footer for the sums. Use a text box
with a control source of:
=Sum([Price])


--
Duane Hookom
MS Access MVP
--

Christopher Buxton said:
My report prints a receipt with all the customers details in the page
header.
The products purchased are in the details section of the report. The
fields
used for each product are 'product number', 'description' and 'price'.

In the page footer I would like to display the sum of the 'price' field,
this is the total price for all purchases. What is the best way to do
this?

Thanks
 
D

Duane Hookom

A field from a report's record source should not normally have any
formatting applied. The formatting might convert a numeric or currency or
date field to text which is not very functional.

Next time, when you state "this does not work", please tell us why. It's a
bit difficult to see your computer screen from our locations.

--
Duane Hookom
MS Access MVP
--

Christopher Buxton said:
this does not work. should it still work even though the field is in
currency
format.


thanks

Duane Hookom said:
The best way is to use a group or report footer for the sums. Use a text
box
with a control source of:
=Sum([Price])


--
Duane Hookom
MS Access MVP
--

in
message news:[email protected]...
My report prints a receipt with all the customers details in the page
header.
The products purchased are in the details section of the report. The
fields
used for each product are 'product number', 'description' and 'price'.

In the page footer I would like to display the sum of the 'price'
field,
this is the total price for all purchases. What is the best way to do
this?

Thanks
 

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