Hi Justin,
One of the easiest methods is to group on the field in question. In report
design view, click on View > Sorting and Grouping. Select the field in
question with Group Header and Group Footer both set to Yes. Drag the field
in question from the field list to the Group Header. Add a textbox to the
Group Footer that has a control source that sums the appropriate numeric data
type. As an example, take a look at the Invoice report in the sample
Northwind database. Here, they are grouping on the OrderID field. The Group
Footer includes a textbox named InvoiceSubtotal that has a control source:
=Sum([ExtendedPrice])
Notes:
1.) You must include the name of a field, not the control, when using the
Sum function.
2.) Make sure that the name of the control is not the same as the control
source.
Tom Wickerath
Microsoft Access MVP
http://www.access.qbuilt.com/html/expert_contributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________
JustinP said:
How do you sum the distinct values based on a field in a report? I'm
guessing you do it in the record source query but is it possible to do
a count of a select query within a select query? Is there an easier way?