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

  • Thread starter Thread starter Mike
  • Start date Start date
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
 
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!
 
Back
Top