Unresolvable compile error

  • Thread starter Thread starter Graeme Richardson
  • Start date Start date
G

Graeme Richardson

Hi, I deleted a class module and removed all references to it in code.
The class did raise events and I've removed all of the relevant event traps
too.
When I compile the code I receive the error: "User-defined type not
defined". No code is selected
So I created a new empty class with the same name. Compile error disappears.
I've tried decompiling and recreating the project but the problem remains.

Any suggestions?

Thanks, Graeme.
 
Graeme,

I've had an error like that and only resolved it by
importing all my FE objects into a new blank database.
Neither rep/comp nor decompile helped at all.

Even then it's possible you might carry that 'sticky'
internal ghost reference to a class module across.

Having said that I use Speed Ferret and always do a double
check for references to removed/renamed code. Using SF
ensures everything gets searched.

I've had problems like this before and never fully resolved
them, i.e. understood what's going on. I'm just left with a
feeling that, with the changes from A2K onwards, something
gets corrupted in the internal tables and you're in trouble.

There is a consensus view that the 'allow auto-correct'
feature can cause problems and should be turned off. I
concur with this and also set 'Allow Design Changes' on all
my forms to 'Design View Only'.
 
Back
Top