• sorting report/hiding grouping (2000)

    Author
    Topic
    #389832

    I’ve been developing reports, and I’ve run into a small hitch:
    I have a report that lists clients that have been placed in jobs through a job training program. These clients are referred to us from two sources (contracts). Sometimes people want to see the placements grouped by contract, sometimes they don’t. Fine. I added a grouping (header/footer) on the contract field that is hidden unless I choose that I want to run the report by contract, and then added a sort on the client’s name.

    The problem is that I need the list sorted alphabetically within the contract when the group header is visible and alphabetically regardless of contract when the group header is not visible. I can’t make this second part happen. Currently when I hide the header the same sort order happen regardless because I don’t know how to specify this alphabetically only sort when I run the report. Can I make a single report do this, or do I need to develop a second report without the grouping? I would like to use a single report for housekeeping reasons. When I’ve done this before I’ve gone the two (or more) report route, but now as I’m learning more I suspect that this is possible and I just haven’t learned how to do it yet. Any thoughts?

    -Karl

    Viewing 1 reply thread
    Author
    Replies
    • #690262

      Karl,

      Even if you make a group header invisible, the report is still grouped (and hence sorted) on the field or expression of this group level; the group level is not removed from the sorting/Grouping window by hiding the group header. Frankly, I don’t see a way to get around this. I’m curious to see if someone else will come up with a solution.

    • #690308

      If the user is making that selection from a form, the easiest way to do this in 2000 would be with two different reports. In Access 2002, you could use the OpenArgs argument of a report to pass it a value and let the report handle the rest, but in 2000 that option doesn’t exist.

      • #690441

        Okay, so two different reports it is. I was hoping that there was a cleaner solution, that there was some way to remove that grouping. At least creating the second report is really easy thanks to copy & paste.

        Hans & Charlotte, thanks for the answers. It is so wonderful to have people to answer my questions & give advice & help me with what I don’t know.
        -K

    Viewing 1 reply thread
    Reply To: sorting report/hiding grouping (2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: