Results 1 to 2 of 2
  1. #1
    brosenfelt is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2015
    Posts
    1

    Need help in parsing strings with multiple delimiters

    Hi guys -- brand new to Access -- but making good progress. Trying to NOT use VB to accomplish this (for a variety of reasons).



    I have a field in our database with five distinct strings, separated by a delimited (a slash or "/").

    I've been able to successfully write the formula to parse the first field:

    ARL: Left$([pipeline]![Short Description],InStr(1,[pipeline]![Short Description],"/")-1)

    The second field:

    BRANCHMGR: Mid(Left([pipeline]![Short Description],InStr(InStr(1,[pipeline]![Short Description],"/")+1,[pipeline]![Short Description],"/")-1),InStr(1,[pipeline]![Short Description],"/")+1)

    and the last field:

    DATE: Mid$([pipeline]![Short Description],InStrRev([pipeline]![Short Description],"/")+1)

    Having trouble figuring out how to get the third and fourth strings parsed. I know its going to include some nested InStr or InStrRev commands -- just having trouble figuring out the structure. Could potential need a LEN command as well.

    Thanks for your assistance.

    Typical field might look like this:

    "Name1/Name2/Description/Update/Date"

    Regards.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    cross posted http://www.access-programmers.co.uk/...d.php?t=280063
    Please advise readers when you post the same or similar posts in another forum.

    Please see this for more info.

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

Similar Threads

  1. Replies: 2
    Last Post: 01-22-2014, 09:38 AM
  2. Replies: 1
    Last Post: 09-16-2013, 04:35 PM
  3. Parsing field data without delimiters
    By shennin202 in forum Queries
    Replies: 7
    Last Post: 09-13-2013, 05:59 PM
  4. Parsing Data Into Multiple Fields
    By JeffGeorge in forum Access
    Replies: 3
    Last Post: 07-25-2013, 10:11 AM
  5. Replies: 5
    Last Post: 08-23-2012, 11:20 AM

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