By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,475 Members | 954 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,475 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
-----
Kent Wolf
Hammond, IN USA (Near Chicago, IL USA)
Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I'm running office97 on xp pro...
your code works fine on my system
what is the error message ?

Kent Wolf <RE**************@comcast.net> wrote in message news:<ia********************************@4ax.com>. ..
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
-----
Kent Wolf
Hammond, IN USA (Near Chicago, IL USA)

Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.