Results 1 to 3 of 3
  1. #1
    Blessy clara is offline Novice
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    2

    Split Name

    Hi Could someone help me to split names in access database



    For Example

    given_name coulmn

    Code:
     Mark Brown
    Mark L Brown
    Mark Leo Brown
    Mark L B Brown
    Mark L De van
    Mark L Brown, Jr
    Brown, Mark
    I want the names to be split into two columns as

    HTML Code:
    given_name                 family_name
    
    Mark L                                  Brown
    Mark Leo                               Brown
    Mark L B                               Brown
    Mark L                                  De van ("De" to always be in family_name)
    Mark L, Jr                              Brown   (, Jr to be always in given_name)
    Mark                                     Brown
    Thank you

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    This is tricky because of the inconsistencies in name structure (middle name or initial, spaces in last name, the Jr or Sr or III suffixes).

    Think will need to write a complex function using string manipulation to do this. Something like this: http://support.microsoft.com/kb/168799

  3. #3
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    oh hey...this is way off, but it's worth a mention anyway:

    other languages have really good built in tools for parsing and things. For instance, PHP has so many functions that are useful, Gates should really take some lessons from it. But at any rate, the pt I'm making is that exporting this stuff to a 3rd party's software or another app where there IS a tool to do this might be worth more than trying to write a function, especially if you know nothing about vb, vba, or any other flavor of ms's bs.

    good luck to ya!

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

Similar Threads

  1. Create a split
    By tcheck in forum Queries
    Replies: 6
    Last Post: 02-05-2011, 05:16 PM
  2. When to split
    By Mclaren in forum Database Design
    Replies: 4
    Last Post: 07-07-2010, 07:25 AM
  3. ULS gone after split.
    By evander in forum Database Design
    Replies: 3
    Last Post: 07-06-2010, 11:49 AM
  4. split db + ODBC
    By TheShabz in forum Access
    Replies: 5
    Last Post: 04-16-2010, 10:02 PM
  5. Split Database
    By smikkelsen in forum Database Design
    Replies: 4
    Last Post: 04-16-2010, 06:46 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