Can't Compile: User-defined type not defined

D

David Salahi

I'm trying to compile the code for an Access application but I keep getting
the error message:

User-defined type not defined

The VB Editor doesn't show me what line of code it's objecting to. So, to
try and track down the problem, I've gone through each module, class and form
and commented out the code, one file at a time. With ALL of the code now
commented out, I still get the error. Any ideas why??

David Salahi
 
T

Tony Toews [MVP]

David Salahi said:
I'm trying to compile the code for an Access application but I keep getting
the error message:

User-defined type not defined

The VB Editor doesn't show me what line of code it's objecting to. So, to
try and track down the problem, I've gone through each module, class and form
and commented out the code, one file at a time. With ALL of the code now
commented out, I still get the error. Any ideas why??

Try importing into a new MDB/ACCDB and see if that helps.

If not try decompiling. Decompile or how to reduce Microsoft Access
MDB/MDE size and decrease start-up times
http://www.granite.ab.ca/access/decompile.htm

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 

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