Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

sorting records

edited August 2001 in General
I created a report that is grouped by a custom field (ie. Label2).

When I run the report, it doesn't group all of the same values together. Is
it possible that I need to sort also by label 2? And if so, how do I. Any
help would be greatly appreciated.

Comments

  • edited August 2001
    You'll need to order the data so that it is sorted before it is fed into the
    report. When the report generates, it will not reorder the data. The group
    will break based on the label text value.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited August 2001
    Maybe I am not clear but I don't think it is breaking based on the label
    text value. Let me give an example:

    The report will list 5 detail records associated to value=A in my group.
    Then it will list 3 detail records associated to value=B. Then it will list
    another 4 records associated to value=A.

    Any help would be appreciated.

    Thanks,

    Aaron


  • edited August 2001
    When are you assigning the text to the label. Use the OnGetText event to
    assign the text of the label.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited October 2001
    It works a lot better if the data is sorted in a dataset (like using a
    TQuery that is grouped and sorted by the value you are interested in),
    rather trying to do it programatically.
This discussion has been closed.