Compile error: User-defined type not defined

  • Follow


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?
0
Reply ManningFan 11/3/2010 3:27:21 PM

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.

0
Reply ManningFan 11/3/2010 3:37:24 PM


On Wed, 3 Nov 2010 08:37:24 -0700 (PDT), ManningFan
<manningfan@gmail.com> wrote:
  
>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.

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

Tony
-- 
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files 
  updated see http://www.autofeupdater.com/
0
Reply Tony 11/3/2010 6:50:39 PM

2 Replies
505 Views

(page loaded in 0.072 seconds)

Similiar Articles:













7/22/2012 2:07:42 AM


Reply: