Results 1 to 4 of 4

Thread: Solved: Report sort order based on a count or sum field

  1. #1
    VBAX Regular
    Joined
    Oct 2006
    Location
    Columbus, GA
    Posts
    42
    Location

    Solved: Report sort order based on a count or sum field

    I have a report that uses a count field (=Count(*)). Which is the number of records found in a group and the report covers multiple groups. Is there a way to now get the report to order by the count field, so that the group with the highest number of records is first in the report when printed?

    Lawson

  2. #2
    VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    Can you post your query?
    Peace of mind is found in some of the strangest places.

  3. #3
    VBAX Guru
    Joined
    Mar 2005
    Posts
    3,297
    Location
    Have you set "Grouping & Sorting" for that Count field?
    As austenr has hinted at the Count needs to be in the Query that supplies the data to the Report.
    If it is only in the report, it is too late for the report to use for grouping & sorting.

  4. #4
    VBAX Regular
    Joined
    Oct 2006
    Location
    Columbus, GA
    Posts
    42
    Location
    Austenr and OBP, Thanks to you both for answering. I am sorry it took me so long to respond. I found a report that solved my problem by using a query to first calculate my totals and then sort the report by query totals. I do not think I just explained the answer to well.

    This is a great site - keep up the good work!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •