Solved

global replace of form name in multiple queries

Posted on 2008-10-14
3
162 Views
Last Modified: 2013-11-28
I've inherited a db and would like to change the name of one of the forms that is used to run multiple reports. However, the form name is used in multiple queries. Is there a way to do a global replace of the form name in all affected queries?

Thanks
0
Comment
Question by:Scott Helmers
  • 2
3 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 250 total points
ID: 22716194
You'll want to use a Find and Replace tool, like the one from Rick Fisher: www.rickworld.com. Access has a builtin F&R, but it won't work with query SQL. MZ-Tools has one as well, but I'm not sure it works on queries either: www.mz-tools.com
0
 
LVL 30

Author Comment

by:Scott Helmers
ID: 22717636
Perfect answer -- Rick Fisher's find and replace did the trick. Funky UI but highly functional code.

I'm also glad to know that I hadn't overlooked a built-in Access function that did this.

Thanks,
Scott
0
 
LVL 30

Author Closing Comment

by:Scott Helmers
ID: 31506068
Terrific answer -- spot on.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now