R
RLN
Re: Access 2003
I inherited an Access app (developed by an end user long ago) with objects
having no centralized uniform naming conventions. Some of these objects have
spaces, some have dashes, some even have slashes across various table names,
controls on forms, VBA variables in code, queries, modules, reports, etc.
The classic one here was an object named "rptPrint-AllRows".
After checking all of the "rpt" objects in the app and never having found
the problem, I finally discovered this object was really a query, and not a
report at all.
(I renamed this one to "qryPrintAll")
For the most part, the application itself is somewhat stable after I fixed a
few minor bugs, but I can forsee many problems down the road when trying to
debug bigger problems (or add enhancements) in the future.
Is there a way (via VBA) to rename every occurrence of a table, column,
form control, query, report, macro or module from "ItemNamedX" to
"ItemNamedY", regardless of where the object is found in the application?
My IT dept is tight on the purse strings or else I would have bought
"SpeedFerret" by Black Moshannon Systems yesterday. This is why I am
looking for a way in VBA to be able to do this.
thank you.
I inherited an Access app (developed by an end user long ago) with objects
having no centralized uniform naming conventions. Some of these objects have
spaces, some have dashes, some even have slashes across various table names,
controls on forms, VBA variables in code, queries, modules, reports, etc.
The classic one here was an object named "rptPrint-AllRows".
After checking all of the "rpt" objects in the app and never having found
the problem, I finally discovered this object was really a query, and not a
report at all.
(I renamed this one to "qryPrintAll")
For the most part, the application itself is somewhat stable after I fixed a
few minor bugs, but I can forsee many problems down the road when trying to
debug bigger problems (or add enhancements) in the future.
Is there a way (via VBA) to rename every occurrence of a table, column,
form control, query, report, macro or module from "ItemNamedX" to
"ItemNamedY", regardless of where the object is found in the application?
My IT dept is tight on the purse strings or else I would have bought
"SpeedFerret" by Black Moshannon Systems yesterday. This is why I am
looking for a way in VBA to be able to do this.
thank you.