PC Review


Reply
Thread Tools Rate Thread

Can't find project or library

 
 
Sammy
Guest
Posts: n/a
 
      22nd May 2004
I'm getting an error on code that has always worked
before. The line that produces the error is :

Dim objWord As Word.Application
error: Compile error: Can't find project or library

How do I resolve the error? I have tried the object
browser, but I don't know what I'm looking for.

FYI (ignore this if it is irrelevant), I just upgraded my
computer to Office 2003, and wonder if it has something
to do with this. In anticipation of database
compatibility issues with other computers on my network,
I have not installed Access 2003 yet - I'm still using
Access 2000. So on the new computer, using Word 2003 and
Access 2000, I created a database. I copy the database
to another computer on my network running Office 2000.
The database works fine on the computer running Word 2003
and Access 2000. The error occurrs on the other computer
running exclusively Office 2000.

Thanks!
 
Reply With Quote
 
 
 
 
Steve Schapel
Guest
Posts: n/a
 
      22nd May 2004
Sammy,

Go to the VBE window in any module in your database, and select
References from the Tools menu. You need a Reference set to the
applicable Microsoft Word Object Library. On the computer using Word
2000, this will be the Microsoft Word 9 Object Library, the name of the
file is MSWORD9.olb, and on the computer using Word 2003, this will be
the Microsoft Word 11 Object Library, the name of the file is MSWORD.olb.

--
Steve Schapel, Microsoft Access MVP

Sammy wrote:
> I'm getting an error on code that has always worked
> before. The line that produces the error is :
>
> Dim objWord As Word.Application
> error: Compile error: Can't find project or library
>
> How do I resolve the error? I have tried the object
> browser, but I don't know what I'm looking for.
>
> FYI (ignore this if it is irrelevant), I just upgraded my
> computer to Office 2003, and wonder if it has something
> to do with this. In anticipation of database
> compatibility issues with other computers on my network,
> I have not installed Access 2003 yet - I'm still using
> Access 2000. So on the new computer, using Word 2003 and
> Access 2000, I created a database. I copy the database
> to another computer on my network running Office 2000.
> The database works fine on the computer running Word 2003
> and Access 2000. The error occurrs on the other computer
> running exclusively Office 2000.
>
> Thanks!

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA - Cannot find project or library Goodenuff Microsoft Excel Programming 2 15th Jan 2009 06:43 PM
Can't find project or library =?Utf-8?B?QW5uYXBvbGlzU3Rhcg==?= Microsoft Excel Worksheet Functions 1 15th Jun 2007 05:02 PM
RE: Can't find project or library =?Utf-8?B?VHlyb25l?= Microsoft Excel Programming 0 19th Dec 2006 03:57 AM
Cant find project or library jeff klein Microsoft Access Form Coding 2 13th Aug 2004 11:30 PM
Can't find project or library Roy Microsoft Excel Programming 2 22nd Feb 2004 04:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:46 PM.