Deleted Form's CodeBehind Still Exists - Can't Delete

M

Mike

I recently deleted a form named MainMenu from my Access project. But the
Form_MainMenu code file still exists and it's causing all kinds of problem.
I can't compile nor run the project; doing so gives the error below. I don't
have the option to remove/delete it. I've run compact & repair a dozen
times, but the form doesn't go away. What is going on and how can I get rid
of this file? Thanks!

The error is:
The form name 'MainMenu' is misspelled or refers to a form that doesn't exist.
If the invalid form name is in a macro, an Action Failed dialog box will
display the macro name and the macro's arguments after you click OK. Open the
Macro window, and enter the correct form name
 
L

Linq Adams via AccessMonster.com

It sounds as if the form is being referenced somewhere within your app. Go
into the code window for one of your forms and run Find. Under Search select
Current Project, then enter Form_MainMenu and see if you find a reference
anywhere.

If this turns up nothing, and it truly is a "ghost" thing, you could try
creating a new database and importing everything into it.

Good luck!
 

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

Similar Threads

Access 2003 Access Error Form Name 0
Access Access Form code saved as class with no Form_ prefix 0
extra class objects 1
Compile error: member already exists 1
Deleted Form? 2
MS 2007 template Error Message 2
Form_Form1 Module w/o a Form1 1
trouble 1

Top