How do I sort a sum value for a group of records in an Access rep.

G

Guest

I am working in Access 2000; I have a report that summarizes customer data
across 5 fields and totals each customer’s in a total column. How can I get
the report to print in descending total dollars order? It now prints
alphabetically by customer name.
 
A

Allen Browne

Create a query as the source for the report.

In the query, create a calculated field to give you the total, by typing
something like this into the Field row:
Amount: CCur(Nz([Field1],0) + Nz([Field2],0) + ... + Nz([Field5],0))

Then open the report in design view.
Set its RecordSource to the name of the query.
Open the Sorting And Grouping dialog (View menu), and sort on the Amount
field.
 
G

Guest

I have tried these changes with the same result
Thanks for the suggestion

Allen Browne said:
Create a query as the source for the report.

In the query, create a calculated field to give you the total, by typing
something like this into the Field row:
Amount: CCur(Nz([Field1],0) + Nz([Field2],0) + ... + Nz([Field5],0))

Then open the report in design view.
Set its RecordSource to the name of the query.
Open the Sorting And Grouping dialog (View menu), and sort on the Amount
field.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

David said:
I am working in Access 2000; I have a report that summarizes customer data
across 5 fields and totals each customer's in a total column. How can I
get
the report to print in descending total dollars order? It now prints
alphabetically by customer name.
 

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