Results 1 to 2 of 2
  1. #1
    mzeltman is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    1

    split and reverse a string in a field

    I have a table that contains a field called "ancestry". The records in this field contains IDs separated by a "/". For example:

    34/56/132/144/412/1243

    I want to be able to split this string, reverse it, and then be able to test each value within the string. So, from the example above, I want to end up the following:

    1234/412/144/132/56/34



    where I can loop a test of the values...first against 1234, then 412, then 144 and so on.

    Any suggestions?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    The code I use to do stuff like that is rather complex. I don't know if others have a simple solution.

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

Similar Threads

  1. Can access take one text string and split it into two?
    By hobsondm01 in forum Database Design
    Replies: 2
    Last Post: 06-09-2011, 09:09 AM
  2. Split string when specific word is found
    By DB4284 in forum Programming
    Replies: 1
    Last Post: 11-18-2010, 03:30 PM
  3. Split a string for use as query parameters.
    By Hobbes29 in forum Forms
    Replies: 3
    Last Post: 06-27-2010, 04:39 PM
  4. Split string into Date and Time Columns?
    By Hobbes29 in forum Queries
    Replies: 2
    Last Post: 06-08-2010, 06:50 PM
  5. Reverse an .mde
    By Marion in forum Access
    Replies: 2
    Last Post: 12-07-2009, 03:09 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