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

    Separating data into 2-fields?


    I know how you can take 2-pieces of data from 2-fields & combined them into 1-field. E.g. if you have a ‘First Name’ field & ‘Last Name’ field you can join them together into 1-field. However, what if I have a field with both the first & last name in one field but I want to separate the names into 2-fields; a ‘first’ & ‘last’ name field/ can it be done & how involve may it entail?

    Thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    The value has only first and last name parts - no middle initial, no suffix (Jr, Sr, II, III, PhD)? There is always a space between the two parts?

    Use string manipulation functions. http://www.techonthenet.com/access/functions/

    Left(fieldname, InStr(fieldname," ")-1)

    Mid(fieldname, InStr(fieldname," ")+1)
    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.

  3. #3
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Thanks June!

    I'm posting another in 'Forms'

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

Similar Threads

  1. Separating information in a table
    By Lupson2011 in forum Queries
    Replies: 27
    Last Post: 05-15-2012, 06:36 AM
  2. Separating Date and Time into Two Input Fields
    By Chris1112 in forum Queries
    Replies: 8
    Last Post: 05-09-2012, 08:28 AM
  3. Separating VALUES in FIELDS/COLUMNS
    By taimysho0 in forum Queries
    Replies: 11
    Last Post: 11-30-2011, 05:32 PM
  4. Replies: 5
    Last Post: 02-26-2011, 07:12 AM
  5. Separating Tables from Forms, etc
    By rtcary in forum Access
    Replies: 6
    Last Post: 07-16-2010, 01:39 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