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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Order by Sums in footer of report?

Status
Not open for further replies.

CTOROCK

Programmer
May 14, 2002
289
US
Hello, I have a report that calculates the sums of inventory: Sum([TotalInv$]) in the item field footer. I am trying to sort the report descending on these sums. I've tried at =Sum([TotalInv$]) in the sorting and grouping menu but it tells me I can run an expresion in the Order By. I don't want to create anther query to do this, is there a better way? Thanks in advance for any help



"The greatest risk, is not taking one."
 
The only way you can set the sorting on an aggregate value is to calculate the aggregate in the report's record source. I would create a totals query that calculates the Sum and add the new query to the report's record source.

Why don't you want to create another query?

Duane
Hook'D on Access
MS Access MVP
 
Thanks Duane,

I have done so, just thouht that there might be another way. I already have loads of queries for so many things. Just asked to see if anyone had any other methods during report time.

Thanks again!

"The greatest risk, is not taking one."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top