Compile error: User-defined type not defined

Compile error: User-defined type not defined

Post by ManningFa » Fri, 05 Nov 2010 00:27:21


I have a database which compiles. I removed a number of forms,
queries, macros, modules and tables from it. When I try to compile
the "boiled-down" version, I get an error "User-defined type not
defined" at this line:

Dim FrmTest as Form_frmHelp

I checked the references, all references are identical in both
databases. I did a search for Form_frmHelp within the DB and didn't
see anywhere that it was referenced. Teh Googles couldn't help me.
Anyone got any suggestions?
 
 
 

Compile error: User-defined type not defined

Post by ManningFa » Fri, 05 Nov 2010 00:37:24

Nevermind. I discovered that somehow the form frmHelp had no code
behind it. Once I went to a backup and imported all the code that was
supposed to be there, it compiled fine.

 
 
 

Compile error: User-defined type not defined

Post by Tony Toew » Fri, 05 Nov 2010 03:50:39

On Wed, 3 Nov 2010 08:37:24 -0700 (PDT), ManningFan



Oh, that's interesting. Thanks for posting the solution.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.yqcomputer.com/
Tony's Microsoft Access Blog - http://www.yqcomputer.com/
For a convenient utility to keep your users FEs and other files
updated see http://www.yqcomputer.com/