• Sort in VBA (2007)

    Author
    Topic
    #462673

    Likely to be a simple one, but i’d like to add a sort to a filter, I’ve got on a button, but the help file is confusing me.

    Here’s my filter;

    Me.Filter = “tblMain.Revdate < Now()"
    Me.FilterOn = True

    I'd like to sort first by [revdate], then by [score].

    TIA

    Viewing 1 reply thread
    Author
    Replies
    • #1178387

      Add the following lines:

      Me.OrderBy = “revdate, score”
      Me.OrderByOn = True

    • #1178389

      Cheers Hans.

      That is FAR simpler than what I was able to find in Help.

      Many thanks

    Viewing 1 reply thread
    Reply To: Sort in VBA (2007)

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

    Your information: