Results 1 to 5 of 5
  1. #1
    redekopp is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2015
    Location
    Saskatoon
    Posts
    108

    Sorting Hyphenated last names

    Having an issue with sorting hyphenated last names.




    Example:
    name is added to database as FnamVirgil Smith-Walker
    name shows up in reports as Virgil Walker-Smith

    lastname field takes the whole "Smith-Walker"

    any suggestions how to keep the structure?

    thank you.

  2. #2
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    Need more information. Can you please provide the structure of your table holding the data and a few sample records?

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Why were the last name parts reversed?

    If Virgil is in Fname field and Smith-Walker is in Lname field, then the fields can be concatenated to show:

    Virgil Smith-Walker

    or

    Smith-Walker, Virgil
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,421
    Kinda fuzzy. If there's a re-ordering going on in the report, this suggests you have more than the first OR last name alone in one report control. So is the name concatenated in a calculated control (but the individual controls are there but perhaps hidden)? Or are they passed to the report as a single field as I think June7 is surmising?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Show us some values in table, and any code manipulation.
    Do you process compound last names in some manner?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 11
    Last Post: 10-30-2016, 05:39 AM
  2. Sorting
    By marigona in forum Forms
    Replies: 8
    Last Post: 12-28-2014, 05:27 PM
  3. Replies: 11
    Last Post: 01-12-2012, 07:55 PM
  4. Query Entity Names, and Column Names
    By Accidental DBA in forum Queries
    Replies: 1
    Last Post: 07-22-2011, 02:38 PM
  5. Replies: 5
    Last Post: 04-24-2011, 03:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums