Unresolvable compile error

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.
 
N

Nick Coe \(UK\)

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'.
 

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