opening MS Word

damo

Registered User.
Local time
Today, 23:41
Joined
Feb 15, 2000
Messages
15
Hi,

Im just looking for a bit of code to open a Word97 document from Access 2.

Thanks.
 
If you only want to open the document then set a hyperlink to it using a label or button.
 
use this code on clickevent to automatically print a word doc and close form. if you just want to open it leave out the print part

Dim WordObj As Object
Set WordObj = CreateObject("word.Application")
WordObj.Documents.Open "c:\document.doc" ' or use (Me![documentpath]) for gettingpath from textbox
WordObj.PrintOut Background:=False
WordObj.Quit
Set WordObj = Nothing

Hope This Helps
 

Users who are viewing this thread

Back
Top Bottom