compile error message

J

Joe Hailey

On attempting to run event driven code on a form in Access 2000, I get an
error message: "Module not found"

A Microsoft Access class object wth the name "Form_Form2" appears in the
Visual Basic Editor. When clicking on "Form_Form2" in the VBE or when
compiling the database, the following message appears: "the form name 'Form
2' is misspelled or refers to form that does not exist." True, the form does
not exist.

There is code associated with "Form2" in the VBE.

Is there any way to remove this Microsoft class module which is not
associated with a form that actually exists?

I have compacted and repaired the database to no avail. What is really wierd
is that this also occurs in 2 backup versions of the database. No previous
problems were experienced.

Any help would be greatly appreciated.

Thanks,
Joe Hailey
 
M

Marshall Barton

Joe said:
On attempting to run event driven code on a form in Access 2000, I get an
error message: "Module not found"

A Microsoft Access class object wth the name "Form_Form2" appears in the
Visual Basic Editor. When clicking on "Form_Form2" in the VBE or when
compiling the database, the following message appears: "the form name 'Form
2' is misspelled or refers to form that does not exist." True, the form does
not exist.

There is code associated with "Form2" in the VBE.

Is there any way to remove this Microsoft class module which is not
associated with a form that actually exists?

I have compacted and repaired the database to no avail. What is really wierd
is that this also occurs in 2 backup versions of the database. No previous
problems were experienced.


Try decompiling the file. See
http://www.mvps.org/access/bugs/bugs0008.htm
for an example and an informative link. You can ignore the
GPF and undocumented caution.
 

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