Purging Code from Forms...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Is there a way to Purge all unused code from my Forms? I've noticed that
when I remove a field from a form the underlying sub procedure gets orphaned
behind. Is there a technique or a program that will go through my code and
purge any sub procedures that don't have a corresponding field on the Form?

Would be very helpful.

**Note to MS. Why don't you just include an option that says "When removing
a field, please remove underlying code". Also would be helpful to have,
"When copying field, copy underlying code."

For the life of me I don't get why MS leaves this OBVIOUSLY useful stuff
out. Gets really irritating when I buy a new version just hoping that these
features will be included but they never are. Why should I have to go to
some third party aftermarket product to solve these problems that YOU should
already be including in my product?

Sorry, just a rant from a frustrated user.
 
Bill

For a technique, open the form's code module and select the General category
(not any specific control, section or Form) in the left side combo box. In
the right side combo box, select the procedure that is now "disconnected".
The General category "catches" all those that get orphaned.
 
Back
Top