Results 1 to 4 of 4
  1. #1
    Keibri is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2019
    Posts
    2

    Find and Replace

    Hi guys,



    I was wondering whether someone can help me with the below.

    Basically I have a table which contains numerous records (more than 10,000 records) and I need to replace a particular text with another text.

    To give an idea I have attached an excel of the data I am working with. I need to replace all the word saying 'Purchase' with 'Prchs' but I need to keep the other text as is. Is there a shortcut for this. As I am typing Find: "Purchase*" and replace with "prchs" but when I do so he replace function is replacing all the other text not just purchase.

    Would appreciate your kind help!

    Find and replace.zip





    Thanks

    keibri

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,803
    You are doing this in Access though?

    copy table for experiment
    create update query; for the field in question and in "update to" row enter Replace([fieldName],"Purchase","Prchs")
    run it and check. Note - this will also affect any word that contains "purchase" as in PurchaseD, purchaseS
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    don't wildcard the 'purchase'

    you can use, in excel, the find and replace function just type PURCHASE in the FIND field and PRCHS (or whatever you want) int he REPLACE field. Then you can step through them one by one to make sure it's finding what you want and once you are just click replace all. NO reason to do anything fancy.

  4. #4
    Keibri is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2019
    Posts
    2
    Thanks for the reply guys!

    Yeah I am doing it in Access. Tried the query and it worked great many thanks for all your help guys!

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

Similar Threads

  1. Find and Replace in macro
    By perus josh in forum Macros
    Replies: 9
    Last Post: 03-29-2018, 06:08 AM
  2. you can't use find or replace now
    By ntambomvu in forum Access
    Replies: 2
    Last Post: 10-25-2017, 02:58 PM
  3. Find and Replace
    By dweekley in forum Queries
    Replies: 3
    Last Post: 04-12-2013, 07:16 AM
  4. find and replace
    By rohini in forum Access
    Replies: 7
    Last Post: 05-17-2012, 05:23 AM
  5. Find and Replace
    By Bedsingar in forum Access
    Replies: 1
    Last Post: 08-14-2011, 01:10 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