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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a Word document from ACCESS 1

Status
Not open for further replies.

Rolliee

Programmer
Jun 23, 2002
1,551
US
This ought to be easy. If the answer is somewhere else, please tell me. I can open a Word application but not in a specific document. Thanks in Advance

Rollie
 
Hi,

I think this might be what you are looking for. This sub opens Word to a blank document.

***********
Sub OpenWordDoc()
Static WordObj As Word.Application
Set WordObj = Nothing
Set WordObj = CreateObject("Word.Application")
'WordObj.Documents.Open ("C:\My Documents\Test.doc") 'opens specific word doc if needed. just example
WordObj.Documents.Add 'opens blank word doc

'Enable viewing the Word session and its document
WordObj.Visible = True
End Sub Have A Great Day!!!, [bigglasses]

Nathan
Senior Test Lead
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top