Solved

Applying a naming convention to an existing project

Posted on 2011-09-04
3
281 Views
Last Modified: 2012-05-12
In an effort to 'clean up' my code and forms, I would like to apply a naming convention to all objects in the current project, renaming existing controls, forms, tables, querys, code modules, and subroutines and functions.

Is there a 'simple' way for doing this that will catch ALL references.  For instance, if I rename a form from Form1 to frmMainForm, and there is code or macros referencing the Form1 name, how can I be sure that all references are changed?
0
Comment
Question by:callstate
3 Comments
 
LVL 6

Expert Comment

by:TinTombStone
ID: 36481463
Try: Edit, Replace

It will allow you to find and replace within the current procedure, module or project
0
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 250 total points
ID: 36481508
Find and replace from Rick Fisher:


Www.rickworld.com


Well worth the money.    There is also across ref utility that let's you find all un-used objects


Jim
0
 
LVL 75

Assisted Solution

by:DatabaseMX (Joe Anderson - Access MVP)
DatabaseMX (Joe Anderson - Access MVP) earned 250 total points
ID: 36481574
Just an additional word on Rick Fisher's Find & Replace.  Specifically, you want:

http://www.rickworld.com/products.html#Find%20and%20Replace%209.0

and I guarantee you F&R will find ALL references in ANY object, including queries where a Form may be referenced, etc.

And yest ... this is the 'simple' way.  
"how can I be sure that all references are changed?"
Because this product works.  I use it daily.

mx
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This collection of functions covers all the normal rounding methods of just about any numeric value.
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
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…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

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

13 Experts available now in Live!

Get 1:1 Help Now