LNC Rename Controls
When I run the LNC Rename Current Control add-in in an existing database on a control that has VBA code behind it, the add-in changes the name of the control but does not change any of the references to the control in the VBA code.
For example,
If I had a command button named CloseForm which I created using the Control Wizard, VBA code would be automatically generated for the Click event of the command button called CloseForm_Click. If I run the LNC Rename Current Control add-in, the add-in will change the name of the control from CloseForm to cmdCloseForm, but the references to that control in the VBA code have not been changed. In particular, the CloseForm_Click is still named CloseForm_Click instead of renaming the procedure to cmdCloseForm_Click. As a result the command button click event will not work.
Is it possible that the LNC Rename Current Control add-in changes the name of the control but does not change the references in the VBA code? This just doen't seem right to me. If you change the name of the control, you should change the name every place that that control is referenced in the VBA code, especially in their event procedures.
Can anyone shed any light on what I am doing wrong? Do the changes in the VBA code have to be done separately using Find and Replace?
Thanks,
Terry Waltz
Terry Waltz
__________________
Terry Waltz
|