Changing Control Names

J

Joe Williams

In Access 2002, if you change the names of controls (let's say txtfield1 to
txtfield2), it orphans all of the event coding for that control name.

Is there any way around this or a more efficient way of handling when you
have to change a control name than to manually go through all the form's
events changing the name of the control?

Thanks, and happy holidays!

Joe
 
R

Rick Brandt

Joe Williams said:
In Access 2002, if you change the names of controls (let's say txtfield1 to
txtfield2), it orphans all of the event coding for that control name.

Is there any way around this or a more efficient way of handling when you have
to change a control name than to manually go through all the form's events
changing the name of the control?

Thanks, and happy holidays!

I use a Shareware add-in named Find and Replace. It adds a build button [...]
to the Name property that I can press when I want to change the name of a
control and it will automatically search the code behind the Form (or Report)
and change every instance of the name it finds.

Well worth the modest registration cost. A similar product named Speed Ferret
will do the same.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top