Results 1 to 2 of 2
  1. #1
    4 Star Lounger
    Join Date
    Jun 2003
    Location
    Utah, USA
    Posts
    406
    Thanks
    35
    Thanked 5 Times in 5 Posts

    Reverse Words in a Field (2002 SP-2)

    Is there a way in a report to reverse the order of words in a field drawn from a table or query.

    I have a table with a field of full names (first middle last), and would like to be able to put them on reports in both first/middle/last order or alternatively in last/first/middle order.

  2. #2
    Silver Lounger GARYPSWANSON's Avatar
    Join Date
    Aug 2001
    Location
    Frederick, Maryland, USA
    Posts
    1,788
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Reverse Words in a Field (2002 SP-2)

    If the names are being fed to the report as three distinct fields (First, middle, and last) then sorting and grouping may accomplish what you are after.

    If the names are being fed as one field, first middle last, then I am not sure how you would do this other then by feeding the report the data in the order wanted and then using the sorting and grouping feature. You may be able to use your name field and the instr command to get the data the way you want it.


    HTH
    Regards,

    Gary
    (It's been a while!)

Posting Permissions

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