Results 1 to 2 of 2
  1. #1
    shinichi_nguyen is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2013
    Posts
    1

    Remove some certain words, tags in fields

    Hi everyone.
    We use Access to pull data from data warehouse and this year they upgraded the new system on the back end and moved old data to the new one. Problem is that in some tables having big fields such as Asset Long Description, Work Long Description and when moved to the new database system, somehow there are certain some XML tags such as <br> </br, etc.. added into the description. So when we pull the data onto the table in Access, is there a way to remove those tags out of the descriptions fields? a macro or module?
    Much appreciate your help.


    Thank you

  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,870
    Off the top of my head - you'll need to check each string in each description and compare it to your list of "tags/etc" to be removed.
    General approach
    Code:
    For each record
         For each string
                If string = a string to remove Then get next String
                Else
                     Write the string
                End If
        Next String
    Next Record
    I suggest you investigate the Split function and examples of how to use it.
    Here's one reference
    http://msdn.microsoft.com/en-us/libr...ice.10%29.aspx

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

Similar Threads

  1. Frequency of Words in Memo Fields
    By Angrybox in forum Queries
    Replies: 1
    Last Post: 05-07-2012, 03:54 PM
  2. Remove all Smart Tags
    By wgroenewald in forum Access
    Replies: 3
    Last Post: 01-18-2012, 01:12 AM
  3. Conatenate fields and also remove blanks
    By Rubijon in forum Reports
    Replies: 3
    Last Post: 10-23-2011, 05:29 PM
  4. Textbox, remove certain words.
    By dgrzalja in forum Forms
    Replies: 0
    Last Post: 11-03-2009, 09:42 AM
  5. tags and words in a row
    By bimfire in forum Access
    Replies: 0
    Last Post: 11-07-2007, 10:53 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