Orphaned Code

  • Thread starter Thread starter Gordzilla
  • Start date Start date
G

Gordzilla

Is there anyway of finding orphaned code behind forms and reports.

ie. Control was named txtDesc with various code attached to events.
Control was changed to a combo box and renamed to cboDesc.
All of the original code still refers to txtDesc.
I would like to be able to find any code that is no longered associated with
a control and either correct it or delete it.
 
Gordzilla said:
Is there anyway of finding orphaned code behind forms and reports.

ie. Control was named txtDesc with various code attached to events.
Control was changed to a combo box and renamed to cboDesc.
All of the original code still refers to txtDesc.
I would like to be able to find any code that is no longered associated
with
a control and either correct it or delete it.

Open the form's class module, put the cursor in the declarations section (ie
before any procedures), and drop down the right hand combo. They'll all be
visible there.
 
Perfect exactly what I wanted.

Stuart McCall said:
Open the form's class module, put the cursor in the declarations section (ie
before any procedures), and drop down the right hand combo. They'll all be
visible there.
 
Back
Top