You receive a "Compile Error: Can't Find Project or Library" error message when you run a procedure that references Jet and the Replication Objects library (282331)
The information in this article applies to:
This article was previously published under Q282331 Moderate: Requires basic macro, coding, and interoperability
skills.
This article applies to a Microsoft Access database (.mdb) and to a
Microsoft Access project (.adp).
SYMPTOMS When you run a procedure that references an object from the
Microsoft Jet and Replication Objects (JRO) 2.5 Library, you may receive the
following error message: Microsoft Visual
Basic
Compile error:
Can't find project or library.
In addition, the computer that you are running the procedure on
displays a reference to the Microsoft Jet and Replication Objects 2.6 Library.
However, the computer that the procedure was developed on actually had a
reference to version 2.5. CAUSE The procedure was created on a computer that has Microsoft
Data Access Components (MDAC) version 2.6 installed, and you are running it on
computer that has MDAC version 2.5 installed. RESOLUTION To resolve this issue, on the computer that has MDAC 2.5
installed, click to clear the Microsoft Jet and Replication Objects 2.6 Library
check box, and then add a reference to the Microsoft Jet and Replication
Objects 2.5 Library. To do so, follow these steps:
- Open the Visual Basic Environment (VBE).
- On the Tools menu, click References.
- At this point, you receive the following error
message:
Your Microsoft Access Database or project
contains a missing or broken reference to the file 'msjro.dll' version 2.6.
- Click OK.
- Click to clear the item in the References list that appears as, "MISSING: Microsoft Jet and Replication
Objects 2.6 Library."
- Click OK.
- On the Tools menu, click References.
- In the list of available references, click to select the Microsoft Jet and Replication Objects 2.5 Library check box, and then click OK.
STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 8/11/2004 |
---|
Keywords: | kbProgramming kbtshoot kbbug kberrmsg kbnofix KB282331 |
---|
|