• report grouping Access 2007

    Author
    Topic
    #496761

    I am trying to group records in a report that need to be grouped on a record ID that contains “-” in the ID… to elaborate a record ID contains some numbers and letters followed by a “-” and then more numbers and letters… I need to group on everything after the “-” but the record ID contains different string lengths before and after the “-“… I am at a loss on how to do this since I don’t know how to look for the “-” in the string and then group on the part of the string that follows… can anyone point me in the right direction… I have tried various combinations of the mid$, left$ and Right$ functions but cannot pin this down so that it works

    thank you

    Viewing 1 reply thread
    Author
    Replies
    • #1470095

      InStr is what you are looking for. Once you know the location you can then use the other functions you refer to.

    • #1470239

      thank you, that worked perfect

    Viewing 1 reply thread
    Reply To: report grouping Access 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: