Results 1 to 2 of 2
  1. #1
    smurof is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2011
    Posts
    1

    Replace Function with Table Lookup


    I have several records that contain very similar substrings, such as "billable edits" and "edits- billable" that I am trying to standardize (make all "edits-billable" become "billable edits") for simplicity's sake. The challenge is that these substrings occur at the end of lengthy strings. I created a table with two fields, the current substrings and the substrings that I would like to replace them with. How can I connect this table, using a replace function, the edit the original strings? Or is there an alternate way to do this?

  2. #2
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Detailed info about tables and fields really helps to know how to help solve your question. Several examples of "This is what I have" - "This is what I what to have" also helps.

    .... The challenge is that these substrings occur at the end of lengthy strings.......
    This tells me you might not have a normalized structure - that you are storing multiple "things" in one field, aka - the field is not atomic.

    The easy answer is: you could use VBA code to search and replace. Or there are a couple of programs that will do a search and replace. It all depends on your table/fields.

    More info????

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

Similar Threads

  1. Lookup Table
    By BigCat in forum Access
    Replies: 2
    Last Post: 05-19-2011, 09:53 AM
  2. Using lookup data for table 1 mutible times in table 2
    By mbjazz in forum Database Design
    Replies: 5
    Last Post: 04-26-2011, 01:18 AM
  3. Lookup function
    By allykid in forum Programming
    Replies: 2
    Last Post: 11-09-2010, 09:48 AM
  4. Find and Replace query from a 2nd table
    By elightbox in forum Queries
    Replies: 1
    Last Post: 09-17-2010, 05:37 PM
  5. Applying a find/replace function
    By Arr in forum Programming
    Replies: 2
    Last Post: 10-12-2009, 12:28 PM

Tags for this Thread

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