Results 1 to 2 of 2
  1. #1
    davej311 is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2013
    Posts
    2

    Splitting strings, same field

    I have some text strings that I would like to split in a query but to be displayed in the same field, i.e.



    String AAABBBCCC

    To be displayed in the results as
    1 AAA
    2 BBB
    3 CCC


    Is this possible?

    Thanks

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    You will need a UNION query
    Something like
    Select left([FieldName],3) as myField FROM [YourTable]
    UNION
    Select right([FieldName],3) as myField FROM [YourTable];

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

Similar Threads

  1. Replies: 1
    Last Post: 09-16-2013, 04:35 PM
  2. Extract Strings from a Dot Notation Field
    By wwalkerbout in forum Programming
    Replies: 17
    Last Post: 02-27-2012, 02:15 AM
  3. how to search only CERTAIN strings in a field??
    By taimysho0 in forum Queries
    Replies: 1
    Last Post: 01-19-2012, 07:05 PM
  4. Delete Specific Text Strings in a Field
    By JET in forum Queries
    Replies: 5
    Last Post: 08-25-2011, 03:33 PM
  5. Replies: 15
    Last Post: 10-14-2010, 12:22 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