Deleted Form causing problem!!!!

  • Thread starter Thread starter Casey Ulve via AccessMonster.com
  • Start date Start date
C

Casey Ulve via AccessMonster.com

This morning I deleted some forms that were no longer in use. I have been
having nothing but problems since then. After some intense digging I found
that for some reason the form is still being referenced in the Visual Basic
Editor. I have started learning VB but I do not know enough to fix this
problem. I believe that if I remove this from the collection the errors
will stop. By the way, the errors I am getting are "Cannot Find Module" and
Form "such and such" no longer exists, but objects are still referencing
it. None of the other forms that I deleted causing this issue. As a matter
of fact when I look in Project Explorer of the Editor they do not show up
anymore. Please let me know if that form is the issue and if it is how do I
get rid of it. Everytime I try to delete it Access closes.
 
You are going to have to look at the code in the modules and in the forms
form the names of the deleted forms. This will allow you to find what line
of code references those forms. You are going to need to know VB in order to
fix those lines of code. Also you might look at the other forms, queryies,
and reports because they might have code or properties that reference those
forms. In the meen time, if you have backed up files of the DB, then restore
a copy of the DB then copy over those deleted forms. So this way you can
take your time fixing your new version of the DB. If you made no changes to
the DB then you can restore the old DB without having to copy those forms.
Either way i would put back those forms because you have no idea what those
errors might do to your database.

good luck!
 
Casey,

Start a clean, new mdb file. Via the File|Get External Data|Import
menu, import all database objects from the existing file. Compact the
database, and compile your code.
 
Back
Top