For me, I am driven by two main philosophies: know more today about the world than I knew yesterday and lessen the suffering of others. You'd be surprised how far that gets you.
Is there a way to change the name of, say a form, and have that name automatically updated in all objects it's used in? I inherited a database with no naming standard. I would like to change the name of a popup parameter form to something simple such as ParmsF, but the form is used in about a 100 queries that use a FROM / THRU date. Can I make a mass change such as that? Thanks.
Donald Blackwell
@Reply 6 months ago
In most cases, if you change the name of a form, that will propagate throughout Access. However, you might run into issues in formulas and aliases within your queries, forms, and reports. And, if there are VBA or Macros, those may need to be manually edited.
The easiest way to find out is to back up your database then try changing the name and see what does or doesn't work.
Jeffrey Kraft
@Reply 6 months ago
Don't forget if it has VBA you will get to go through the code and change things by hand. Oh if the database is split you may have to change things by hand as well (at least I had to).
Kevin Yip
@Reply 6 months ago
You can use VBA Editor's Find & Replace to update form names en masse across all modules. If form names are used in SQL statements of queries, you may use VBA to loop through all the queries in the QueryDefs object and change each of their SQL statements. It's also a good habit to avoid using explicit form names if you can. For instance, in VBA, use Me.Name to refer to the form name instead of using its explicit name. In a parameter query, use VBA to insert the value of the parameter instead of explicitly referencing the form (i.e. Forms!MyForm!MyControl) as the parameter.
Raymond Spornhauer
@Reply 6 months ago
@0[Dave-ANDERSON]
Backup your database before you make any changes!!!!!!
-Raymond
Dave AndersonOP
@Reply
6 months ago
Just wanted to say "Thanks" to those who took the time to respond to my visitor question. I do appreciate that effort on your part.
Sami Shamma
@Reply 6 months ago
There are tons more benefits once you become a member. I strongly encourage you to join. Silver level is incredibly low cost.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Visitor Forum.