Can't find project or library

S

Sammy

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!
 
S

Steve Schapel

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.
 

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