Results 1 to 5 of 5
  1. #1
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476

    How to separate names into 2-separate fields


    Have a field with both first & last names, “Tom Jones” I want first & last names in 2-separate fields,First Name, “Tom”; Last Name, “Jones” Anyassistance will be greatly appreciated!

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    FirstName: Left([NameField],InStr([NameField]," ")-1)
    LastName: Mid([NameField],InStr([NameField]," ")+1)

  3. #3
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Thanks Je! One more question, say I have the names 'yearsborn "1968" can I create a field ageborn from the 'yearsborn' field?

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Can you post an example of the actual data layout and expected result.

  5. #5
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Never mind,, I figured it out. Thanks again Joe!

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

Similar Threads

  1. Replies: 5
    Last Post: 07-18-2014, 02:04 AM
  2. How do put first and last name in separate fields.
    By rudenberg2013 in forum Access
    Replies: 9
    Last Post: 11-02-2013, 11:00 PM
  3. Custom Form Separate Fields
    By MikeDBMan in forum Forms
    Replies: 1
    Last Post: 10-10-2012, 01:09 PM
  4. Memo fields in separate tables
    By mhart in forum Database Design
    Replies: 1
    Last Post: 12-02-2011, 05:51 PM
  5. Separate Names into Columns
    By bulbul4u in forum Access
    Replies: 2
    Last Post: 04-01-2011, 12:01 PM

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