can't find word97 object...

  • Thread starter Thread starter les
  • Start date Start date
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
 
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
 
Back
Top