Results 1 to 3 of 3
  1. #1
    Seraphina is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2018
    Posts
    1

    Red face Selecting text from right of last comma

    Hi,



    I need to select the text from the right of the last comma and insert the column of the result into the existing table.
    The only issue is the last comma isn't always in the same position. It can be the 9 or 10th character of the string.
    Help
    Last edited by Seraphina; 06-28-2018 at 04:51 PM. Reason: spelling

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850

  3. #3
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    And use that within the Mid() function:

    https://www.techonthenet.com/access/...string/mid.php
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Text query before comma if any
    By geocan2006 in forum Queries
    Replies: 5
    Last Post: 02-06-2018, 08:30 AM
  2. Replies: 3
    Last Post: 10-24-2017, 07:54 AM
  3. Replies: 4
    Last Post: 05-07-2015, 04:02 PM
  4. exporting query to text comma separated
    By Pasi in forum Queries
    Replies: 6
    Last Post: 12-27-2013, 06:42 PM
  5. End of Text Box - Replace Comma with Period
    By bburton in forum Programming
    Replies: 14
    Last Post: 06-20-2011, 03:20 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