Stumped, Desperate: Word 97 with Acc 97 on WinXP...

K

Kent Wolf

I have some code that worked just fine in Access 97 with Word 97 in
Windows NT 4.0.

We upgraded one of our OS's to Windows XP.

Now, the code won't work. I got an error that said something about
not being able to find a path. My path to MS Word is valid. The code
I am getting an error on is:

Set objWord = CreateObject("Word.Application")

I have searched and searched Google Groups for weeks to no avail.

Could someone please tell me what this might be? I did note that the
code worked just fine on my Windows XP system here at home.

I checked and I have no missing references. All references lead to
files physically located on my machine.

I am absolutely stumped.

The actual code is longer, but I believe if I could just invoke an
instance of Word, all would be OK.

The (simple) Word invoking code is listed below:

Private Sub Command80_Click()

Dim objWord As Object

Set objWord = CreateObject("Word.Application")

With objWord

..Visible = True

End With

End Sub

I have tried every known solution even remotely related to this issue
to no avail.

....Thank you very, very much if you can help.

Kent
 
C

CSmith

Hi,

[Just a thought...] Perhaps an important registry key and/or subkey has
changed behind the scenes of your process after the upgrade from NT
[unbeknownst to you]. I remember from years ago that NT does not always have
the exact same registry keys and subkeys as Windows. Some of my old VB apps
had to confirm the environment (NT or Windows) during installations in order
to read from the correct registry locations, which MS Office apps might be
doing, as well. So, the Access and Word installations on the upgraded
machine may think that they are still running on NT and calling data from
[now] invalid registry locations. You might want to reinstall those apps on
a non-production machine after upgrading from NT to XP as a test to see if
it all works again.
 

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