Results 1 to 4 of 4
  1. #1
    Star Lounger
    Join Date
    Sep 2002
    Location
    New York, New York
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sorting report/hiding grouping (2000)

    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

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: sorting report/hiding grouping (2000)

    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.

  3. #3
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: sorting report/hiding grouping (2000)

    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.
    Charlotte

  4. #4
    Star Lounger
    Join Date
    Sep 2002
    Location
    New York, New York
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: sorting report/hiding grouping (2000)

    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

Posting Permissions

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