Results 1 to 4 of 4
  1. #1
    stocktsi is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    3

    Search for brackets

    I have a data field that I'm trying to clean up. The field contains two references to the same information (gender and mens/boys) and I'd like to remove one reference so it's not repetitive and saying the same thing. Example of current data:

    [Gender] MB Shoe - or - MB [Gender] Shoe

    I'd like to replace both of those examples with just:



    [Gender] Shoe

    The bracketed text is replaced by another application so I want to keep it. Prefer to use a query to do this so I can contract/expand the scope of the query as necessary, but open to a search/replace on the table as well.

    This can also be done in 1 query that covers both examples, or if it's easier 2 queries with each query covering one of the examples.

    Thanks in advance for your help.

  2. #2
    stocktsi is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    3
    ... and I can't just replace the letters MB because the letter combo is used elsewhere (coMB, etc).

  3. #3
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by stocktsi View Post
    ... and I can't just replace the letters MB because the letter combo is used elsewhere (coMB, etc).
    then try replacing any combo you can think of that will fit every record. surely you've thought of that?

    like:

    • [space]MB
    • MB[space]
    • [space]MB[space]


    this is a pattern-based query need. so find the patterns.

  4. #4
    stocktsi is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    3
    The killer is that I have other records that have MB that I don't want to replace (as in "512 MB RAM") so none of the simple replaces work. I need to know the records also have [Gender] in it to know the MB is mens/boys not something else.

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

Similar Threads

  1. Search
    By nashr1928 in forum Reports
    Replies: 5
    Last Post: 08-29-2011, 11:35 AM
  2. Replies: 4
    Last Post: 03-17-2011, 06:17 AM
  3. Search Log!!!!!!!!!?!?!?!?!?
    By JG1992 in forum Queries
    Replies: 2
    Last Post: 03-13-2011, 03:09 PM
  4. Replies: 2
    Last Post: 08-31-2010, 08:57 PM
  5. Search
    By DWS in forum Forms
    Replies: 3
    Last Post: 08-24-2009, 12:07 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