User defined type not defined

G

Guest

Hi, we have an Access 97 application where quite a few custom letters are
generated from the system. The codes are embedded in the sytem to achieve
this. However, recently, none of the letters are working. When one tries to
press a button on the letter generation form, the following is generated:
Compile error: User defined type not defined. The cursor goes to the
following code:
Dim objWord as Word. Application.

I am then checking the reference and found only three of the following are
checked.
1) Visual Basic for Application
2) Microsoft Access 8.0 Object Library
3) Microsoft Dao 3.51 object library

Any help to resolve the issue is apprecatied. Thanks
 
B

Brendan Reynolds

You need a reference to the version of Word installed on the target PCs -
Microsoft Word.8 Object Library for Word 97, 9 for 2000, 10 for 2002 or 11
for 2003.
 

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