Results 1 to 7 of 7
  1. #1
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338

    Splitting Data

    Hello
    How can I split below data into new columns?
    Example:
    RECONCILIATION
    Ray-704-12-10/01/2017


    New Columns
    RECONCILIATION1 RECONCILIATION2 RECONCILIATION3 RECONCILIATION4
    Ray 704 12 10/1/2017




    Thank you

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    One simple way would be to export the data column as a Text File, and then re-import as a delimited text file, using the dash as the delimiter.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    I'd probably create a function that used the Split() function and returned the desired portion.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Ack, I'm a slow typist today! Joe's idea is a good one if it's a one-time process.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Joe's idea is a good one if it's a one-time process.
    That's a good point. If it is something that is going to be done time and time again, creating a non-manual process to do it is probably the best way to go.

  6. #6
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    Yes, I would need this to be done more than one time.

    I did some research online and found the following code
    Reconciliation1: Trim(Left([RECONCILIATION_NUM],InStr([RECONCILIATION_NUM],"-")-1))

    This code works and returns Ray. How do I get second part of the string (Reconciliation2 704)?

    Thank you

  7. #7
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You want to use the Split function, like Paul suggested.
    See: https://www.techonthenet.com/access/...ring/split.php

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

Similar Threads

  1. Splitting field data
    By Srin in forum Access
    Replies: 26
    Last Post: 11-09-2015, 11:11 AM
  2. Splitting and Suming Overlapping Data?
    By TinyRobot in forum Queries
    Replies: 3
    Last Post: 06-17-2014, 02:23 PM
  3. Splitting Data Using A Scanned Bar-code Entry
    By euphonium01 in forum Forms
    Replies: 4
    Last Post: 03-24-2014, 11:32 AM
  4. splitting data multiple fields
    By rpollard in forum Access
    Replies: 0
    Last Post: 03-22-2011, 07:15 PM
  5. Splitting Data
    By thesaguy in forum Access
    Replies: 4
    Last Post: 08-19-2010, 02:43 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