Whats the reason of this compile Error: Object library feature not supported

  • Thread starter Thread starter Mota
  • Start date Start date
M

Mota

Hi;
When working with my DB (Made with Access 2002) sometimes suddenly i have
this error,and when i want to debug it,i face to some simple key words such
as Me,BackColor or so on.as cause of this error.This means that my program
doesnt know "Me","Set frm=....","txtSum.BackColor" or so on any more.Its
nonsense because my
program works fine mostly.To solve this problem i have to open and close DB
in another Windows (I have 2 windows on my PC) and then return to the
previous Windows So i see that
problem is solved automatically.Now i have two questions:
First,what is my problem and how to fix it?
And second,How to prevent and handle such compile errors,that have no error
number.
can anyone please help me?
Thank you so much in advance.
 
Mota, check your references: Tools | References from any code window.

Particularly if you have 2 versions of Windows on the one computer and the
software works under one and not the other, you may find that one a DLL (or
OCX, or ...) is not correctly registered in one of the versions of Windows.

More info on references and how to register them individually:
http://allenbrowne.com/ser-38.html
 
Thank you for ur attention;I have got the best answers from you and very
like ur replies(and Mr. John Vinson's too)
You r right if there is a constant and stable error,but im just having this
error 1 per 1000 time i work with my software,not always.In the other hand
the causing agent of this error is something like keywords
"Me",".BackColor","Set frm=Something" and so on.This code units work fine in
all my daily works on the same windows version,exept for the time i have
this Error.In this case practically i found that there is 2 ways to resolve
this error.First way is to create another DB and copy all objects to
it.Since my users work with Run time version and can not do this,i decide to
do this programmatically.I made a code snippet to do that and tested it.It
works fine exept for Menu Bars.Do you know how i can export a menu bar to
another DB thru code?
2nd way is to open and work with my program in Win XP and then close it and
Restart computer and come up in Win Me back,so i see that Error has been
fixed.I dont know why.It seems that sometimes a library or reference Hangs
!!!
So,its the Access foult that sometimes goes crazy and not mine.Do you know
why sometimes this error happens for a few seconds,and thanks to another
version of windows,fixes automatically?
For non proffessional users im facing to, its a big problem and if u can
help me to find its reason and fix it,i will be so grateful to you.
Thank you again.
 
Back
Top