can't find word97 object...

L

les

Hello,

I have MS Access app that instantiates a MS Word. The app used to work fine
on 50 machines. However, all of a sudden it fails without any reason on a
few machines. There was nothing installed on those machines so nothing would
affect these systems. Also, we have no viruses that would cause it. Those
systems that the app fails on run Win95 and Win98.

This is the code that fails when creating the object:

Dim objWord As Word.Application
Set objWord = CreateObject("Word.Application")
With objWord
.blah....

Any help is greatly appreciated,
Les
 
A

Albert D. Kallal

Perhaps they upgraded their version of word. Further, you should ALWAYS use
late binding.

Try downloading my word merge example (it comes with sample data, and is
ready to go).

Try it on those pc's that don't work. I am willing to bet it DOES WORK.

Now, after it does work (and I am sure it will), then read my notes on how
to make a bullet proof word merge that will work on any pc, and even work
when you mix versions of access, and word.

The real key here is to remove all references to word, and use LATE
binding...

You can read my notes on word merge:

http://www.attcanada.net/~kallal.msn/wordmerge/page2.html

You can download a running sample of the code with data at:
http://www.attcanada.net/~kallal.msn/msaccess/msaccess.html
 

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