Results 1 to 4 of 4
  1. #1
    ahightower is offline Novice
    Windows Vista Access 2007
    Join Date
    Jan 2009
    Posts
    8

    Pull all text that preceeds a /


    I need to pull all text and numbers that preceeds a "/" in a product ID. I can't use left or right because the / comes at different times. Does anyone have a formula for this?
    Thanks!

  2. #2
    Join Date
    Jan 2009
    Posts
    4
    You can use the Instr function to find the position of the "/" character in the string. (This returns the first occurrence but I'm assuming your strings won't contain more than one instance of that character?)

    Once you know the position you can use the Left function to extract the data.
    RTTS - The Software Quality Experts www.rttsweb.com

  3. #3
    ahightower is offline Novice
    Windows Vista Access 2007
    Join Date
    Jan 2009
    Posts
    8
    That worked Thanks!

  4. #4
    Join Date
    Jan 2009
    Posts
    4
    Great - you're welcome!RTTS - The Software Quality Expertswww.rttsweb.com

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

Similar Threads

  1. Pull Data from another table
    By bbranco in forum Access
    Replies: 1
    Last Post: 06-19-2013, 06:15 AM
  2. Replies: 1
    Last Post: 02-14-2007, 07:27 PM
  3. Pull Parameter Value from Form
    By dymondjack in forum Queries
    Replies: 1
    Last Post: 02-14-2007, 07:15 PM
  4. Replies: 0
    Last Post: 12-19-2006, 09:44 PM
  5. Replies: 1
    Last Post: 08-22-2006, 04:27 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