[AccessD] Problem with Word Automation

Susan Harkins ssharkins at setel.com
Thu May 10 09:03:56 CDT 2007


 

On 5/9/07, Susan Harkins <ssharkins at setel.com> wrote:
> Found my error...
>
> Set doc = appWord.Documents("CustomerSlip.doc")
> Set doc = appWord.Documents.Open("C:\WordForms\CustomerSlip.doc", , 
> True)
>
> I thought it was an either/or, but apparently it isn't -- you have to 
> set the document name AND include the document's name in the Open method.

It is an either/or.

The first method is getting a reference to an already open document.

The second method is getting a reference to a document that you are opening.

What version of Word/Access are you using?

=========Both are 2003. If I comment the first and add the file name to the
second, it fails. 

Susan H. 




More information about the AccessD mailing list