Cannot Delete MS Office Access Class Objects

E

EarlCPhillips

I copied an Access .mdb application that has worked for years to build a new
application. The old application contains a reference to a non-existant form
that I have never have been able to delete, but it has never interferred with
compiling the existing application. After I stripped out the parts I did not
need, I tried to compile the new application and I get the message "The form
name 'frmAlt1Activity' is misspelled or refers to a form that doesn't exist."
I don't know how to delete the missing Class Object or render it moot. Any
ideas?

EarlCPhillips
Ex-mainframer Learning Access to Help
Harvesters Community Food Network Feed the
Hungry Efficiently
 
B

Bill Mosca

Compacting might fix that, But I'd take a look at all the forms to see if
one has a subform by that name.

If you don't find anything, create a form with that name, compact and then
delete the form.

If nothing above works, make a backup copy. If you have a startup form,
change the startup form to (none) and open the database with the /decompile
switch from the Run command line.
"C:\Program Files\Microsoft Office\Office11\msaccess.exe" /decompile
"C:\MyFolder\MyDatabase.mdb"
 
P

protección familia

Bill Mosca said:
Compacting might fix that, But I'd take a look at all the forms to see if
one has a subform by that name.

If you don't find anything, create a form with that name, compact and then
delete the form.

If nothing above works, make a backup copy. If you have a startup form,
change the startup form to (none) and open the database with the
/decompile switch from the Run command line.
"C:\Program Files\Microsoft Office\Office11\msaccess.exe" /decompile
"C:\MyFolder\MyDatabase.mdb"

--
Bill Mosca, MS Access MVP
http://www.thatlldoit.com
http://mvp.support.microsoft.com/profile/Bill.Mosca
http://tech.groups.yahoo.com/group/MS_Access_Professionals
 

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