Strange error in form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear friends,

I keep receving an error "Compile error - Can't find project or library"
when I try to run any of the forms from a database. The strange thing is that
on other machine I am running the application without any problem.

The error appears, for example, when encounters this kind of "innocent" code
Me.caption = "today is " & date and the debugger focus on the "date" word.

This is very strange and I have not encountered such errors until now.

Can somebody help?

Thank in advance,
Catalin
 
Dear friends,

I keep receving an error "Compile error - Can't find project or library"
when I try to run any of the forms from a database. The strange thing is that
on other machine I am running the application without any problem.

The error appears, for example, when encounters this kind of "innocent" code
Me.caption = "today is " & date and the debugger focus on the "date" word.

This is very strange and I have not encountered such errors until now.

Can somebody help?

Thank in advance,
Catalin

That PC has a missing reference.
Open any module in Design view (or click Ctrl + G).
On the Tools menu, click References.
Click to clear the check box for the type library or object library
marked as "Missing:."

An alternative to removing the reference is to restore the referenced
file to the path specified in the References dialog box. If the
referenced file is in a new location, clear the "Missing:" reference
and create a new reference to the file in its new folder.

See Microsoft KnowledgeBase articles:
283115 'ACC2002: References That You Must Set When You Work with
Microsoft Access'
Or for Access 97:
175484 'References to Set When Working With Microsoft Access' for
the correct ones needed,
and
160870 'VBA Functions Break in Database with Missing References' for
how to reset a missing one.

For even more information, see
http://www.accessmvp.com/djsteele/AccessReferenceErrors.html
 
Catalin said:
I keep receving an error "Compile error - Can't find project or library"
when I try to run any of the forms from a database. The strange thing is that
on other machine I am running the application without any problem.

The error appears, for example, when encounters this kind of "innocent" code
Me.caption = "today is " & date and the debugger focus on the "date" word.

This is very strange and I have not encountered such errors until now.


Sounds like a file on your machine has been moved, deleted
or overwritten, which is causing a reference problem. For
more info, see:
http://www.accessmvp.com/djsteele/AccessReferenceErrors.html
http://www.granite.ab.ca/access/error2147319779.htm
 
Back
Top