Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening a word file while in access97 1

Status
Not open for further replies.

Bigpapou

Programmer
May 23, 2001
41
CA
I can open word but not a specific files like "c:\something.doc". How can I do that?

Anything would help!!!
 
I have used something similar to this in the past:

Dim objWord As Object 'Word.Document
Dim objstr As String

objstr = "c:\something.doc"

Set objWord = GetObject(objstr, "Word.Document")
objWord.Application.Visible = True
objWord.Application.Documents.Open FileName:=objstr

 
TX maggieb!!!
The last line was the missing one.

objWord.Application.Documents.Open FileName:=objstr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top