Hi,
I am trying to open an existing Word document from an Access form. I have not been able to find a way to open the document in Word for editing. The closest switch I could find to open a document was /t which opens a NEW document with the document passed to it as a TEMPLATE. So it isn't opening the document I want opened, it's opening another document with the one I want opened as a template. My code looks like the following:
'These are the locations for the Word exe and the mailmerge document
WordDir = "C:\Program Files\Microsoft Office\Office\WINWORD.EXE"
DocLocation = "h:\users\common\ebms\docs\worddoc\second_renew.doc"
'Now shell to Word
Shell (WordDir & " /t" & """" & DocLocation & """"
Is there a switch or a command that can be used to open Word with the document at 'DocLocation' open for editing. It seems like this would be one of the most widely used switches or commands around but I can't find any documentation in Help or on the web of this simple operation.
Any advice??
Thanks!!!
Jonathan
jonathan_caulder@unc.edu
I am trying to open an existing Word document from an Access form. I have not been able to find a way to open the document in Word for editing. The closest switch I could find to open a document was /t which opens a NEW document with the document passed to it as a TEMPLATE. So it isn't opening the document I want opened, it's opening another document with the one I want opened as a template. My code looks like the following:
'These are the locations for the Word exe and the mailmerge document
WordDir = "C:\Program Files\Microsoft Office\Office\WINWORD.EXE"
DocLocation = "h:\users\common\ebms\docs\worddoc\second_renew.doc"
'Now shell to Word
Shell (WordDir & " /t" & """" & DocLocation & """"

Is there a switch or a command that can be used to open Word with the document at 'DocLocation' open for editing. It seems like this would be one of the most widely used switches or commands around but I can't find any documentation in Help or on the web of this simple operation.
Any advice??
Thanks!!!
Jonathan
jonathan_caulder@unc.edu