Some versions of Access are supposed to do this for you, but I've never
relied on it.
If I need to change the name of a form after I've done a decent amount
behind the scenes with it, I generally Copy/Paste with a new name... this
seems to do a pretty decent job for the Access interface (event procedures
behind the form anyway)... you will then need to open the VBA window and
CTRL+H (find & replace) for code specifics (though it's generally bad
practice to hardcode form names, specifically for this reason).
If this is a startup form you may need to go back to the db startup options
and select the form from the list again.
I think you'll still have to manually find any related controls on other
forms that may reference it.
You could write a function that grabs each form, runs the controls, checks
properties, and changes the value each time "formname" is found, but that's
some pretty serious coding.
That still leaves Macros... I'm not sure about that one either.
So... no easy answer, that I know of. Getting yourself into a good naming
convention for objects is essential for reasons such as this, though coming
up with one that works well for you generally takes a while.
--
Jack Leach
www.tristatemachine.com
- "Success is the ability to go from one failure to another with no loss of
enthusiasm." - Sir Winston Churchill