Results 1 to 4 of 4
  1. #1
    jeebs is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    2

    Post Possible to update ~180 queries with find/replace script or function?

    The company I work for is consolidating regional server space onto a single server. I have relinked all of my tables, but my ~180 queries are still pointing to the old server.



    My question: Is there a script or other process that can be executed that will search through all my queries within the database to find the string "dbo_tbl" and replace with "dbo_vwtbl"? I would very much like to avoid taking each individual query to a notepad...

    Much thanks for any insight

  2. #2
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    Much easier would be just to rename the linked table back to dbo_tbl in your MS Access database. That does not change the link or rename the table in the external database, it only changes what you call it.

    John
    Last edited by John_G; 04-02-2014 at 10:17 AM. Reason: Clarify the information.

  3. #3
    jeebs is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    2
    Sometimes the easiest solution is the hardest to see. Thanks John

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by John_G View Post
    ...rename the linked table back to dbo_tbl...
    I don't know that I would have thought of that.

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

Similar Threads

  1. Replies: 2
    Last Post: 06-14-2013, 12:56 PM
  2. Run SQL script under VBA Function
    By shabar in forum Programming
    Replies: 12
    Last Post: 03-19-2013, 11:00 PM
  3. Replies: 1
    Last Post: 11-30-2012, 05:57 AM
  4. Replies: 3
    Last Post: 06-07-2012, 07:05 AM
  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