Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sorting Summary Lines

Status
Not open for further replies.

jnix

MIS
Feb 18, 2002
101
US
I have a data base of transactions by individuals. I want to sum the total number and value of transactions by each individual and then sort these sums by ascending number of transactions/individual. How can I do this?
Thanks,
jnix
 

To sum the totasl number of transactions, put a dummy field in the underlying query. Give the dummy field a value of 1. Sort the query by individual.

Then turn the query into a totalling query by using the icon with a large sigma. In the individual field set to "GROUP BY" Use the "SUM' aggregate function function for the dummy field and the value field. Run the query
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top