Results 1 to 4 of 4
  1. #1
    perryc is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2019
    Posts
    122

    How to hide text before a certain "text"?

    e.g. in a text field, it contains "Hello this part is not needed. Notice: this is an important message"
    I would like the text field now only to show "Notice: this is an important message" and hide everything before the word Notice.


    Thank you for your help.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You can use the Mid() and InStr() functions:

    Code:
    ?mid("Hello this part is not needed. Notice: this is an important message",instr(1,"Hello this part is not needed. Notice: this is an important message","Notice"))
    Notice: this is an important message
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    perryc is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2019
    Posts
    122
    That works! Ty for quick response.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help!
    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. Replies: 2
    Last Post: 01-04-2016, 04:44 AM
  2. Replies: 27
    Last Post: 11-18-2015, 12:39 PM
  3. Replies: 3
    Last Post: 04-22-2013, 06:08 AM
  4. Export "Query or Report" to a "Delimited Text File"
    By hawzmolly in forum Import/Export Data
    Replies: 3
    Last Post: 08-31-2012, 08:00 AM
  5. Replies: 5
    Last Post: 09-02-2011, 03:44 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