Sorting Reports

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • harris@compu-type.net

    #1

    Sorting Reports

    I have a list box on a Form labeled "txtSortBy" . How do I pass this
    field to a Report to order the way I have chosen on the Form?

    Currently, I have created 3 of the same reports and hard coded the
    sorting within each Report. (What a drag to maintenance when I want to
    make a design change and must update ALL three of these reports,
    instead of just one)

  • salad

    #2
    Re: Sorting Reports

    harris@compu-type.net wrote:
    I have a list box on a Form labeled "txtSortBy" . How do I pass this
    field to a Report to order the way I have chosen on the Form?
    >
    Currently, I have created 3 of the same reports and hard coded the
    sorting within each Report. (What a drag to maintenance when I want to
    make a design change and must update ALL three of these reports,
    instead of just one)
    >
    In the OnOpen event you could do something like
    Me.OrderBy = Forms!ReportCal lingForm!txtSor tBy
    Me.OrderByOn = True

    For the most part, reports are sorted on what you have specified as the
    group level sorting. Look at GroupLevel Property in help and related
    topics.

    Comment

    Working...