Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I delete class object when form alreday deleted

Status
Not open for further replies.
Oct 19, 2004
31
US
I had a form called " Company". I had some event coded to it.
I deleted the Form and then Deleted the code associated with it. But whenever I try to write new events I cannot save them as the error pops up "cannto find Form "Company""

Now I have already deleted this form and the code but cannot seem to erase the Class object in the code window. How can I do that, I try to go to it and press delete but nothing happens.

Please help as it is messing up rest of my database.
 
Did you try removing the module completely ?
 
Yes they have been removed.

The problem is now I cannot open certain Form dues to these annoying deleted forms objects which are not going away as I donot know how to delete them.

Please help.
 
Have you tried to Compact/Repair the database ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
No I have not.

Could you please tell me how that is done I am new to MS Access.
 
I tried the compact and repair database and it brings out a dialog box saying.

Do you want to save changes to the following forms.

"Company" (this is the deleted form)

I enter NO but it doesnot change anything after compacting and repairing the database.

I tried YES to save changes and still no effect.

What am I doing wrong.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top