Delete a phantom form

A

Allison

Access 2000, Win XP

in my Visual Basic Editor, I see a form in the upper left pane (Class
Objects) which doesn't seem to exist.

The form's name is ~TMPCLP423541. I presume it was a place holder for when
I was copying one form to another. But it never deleted itself.

I do not see it present in my forms, but I can get to it from the Visual
Basic Editor (there is no associated coding, and the form is blank when
brought up).

How do I delete this? I tried right-click and remove, but that option is
grayed out.

I tried select and delete, but that doesn't do anything either.

Your help is much appreciated.
 
M

Marshall Barton

Allison said:
Access 2000, Win XP

in my Visual Basic Editor, I see a form in the upper left pane (Class
Objects) which doesn't seem to exist.

The form's name is ~TMPCLP423541. I presume it was a place holder for when
I was copying one form to another. But it never deleted itself.

I do not see it present in my forms, but I can get to it from the Visual
Basic Editor (there is no associated coding, and the form is blank when
brought up).

How do I delete this? I tried right-click and remove, but that option is
grayed out.

I tried select and delete, but that doesn't do anything either.


Try creating a new, blank mdb file and set all its Tools -
Options as needed. Then import everything from the problem
mdb file. In the Import wizard, do not use Select All on
the forms tab, select each form separately.
 
A

Allison

This worked beautifully! I also used this tip on another database that was
giving me grief, and it fixed that problem as well. Thank you very much.
 
M

Marshall Barton

Allison said:
This worked beautifully! I also used this tip on another database that was
giving me grief, and it fixed that problem as well. Thank you very much.


You're welcome.

Note that the type of corruption that technique can fix is
often caused by editing a form or report while it is open in
some view other than design view. Try to get into the habit
of **always** switching to design view before editing any
code.
 

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