Opening MS Word File from Access Form

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tony Schoeffler

    Opening MS Word File from Access Form

    I have an Access application where it would desirable to open a word
    file directly from an Access Form. I have been able to open the Word
    application, but I have not been able to have it open with the desired
    file. Any help or sample code would be appreciated.

  • Dean Covey

    #2
    Re: Opening MS Word File from Access Form

    In your table, create a field for hyperlinks. Populate that field
    accordingly and make it available on the approriate form.

    --
    Dean Covey
    Please feel free to stop by every day to learn all you can about acquiring high value auto loans for your next new vehicle purchase.


    MS-Office Certified:


    "Tony Schoeffler" <Hugh.A.Schoeff ler@lerc.nasa.g ov> wrote in message
    news:c5p61s$pje $1@sulawesi-fi.lerc.nasa.go v...[color=blue]
    > I have an Access application where it would desirable to open a word
    > file directly from an Access Form. I have been able to open the Word
    > application, but I have not been able to have it open with the desired
    > file. Any help or sample code would be appreciated.
    >[/color]


    Comment

    • Mike Preston

      #3
      Re: Opening MS Word File from Access Form

      On Fri, 16 Apr 2004 20:44:28 GMT, Hugh.A.Schoeffl er@lerc.nasa.go v
      (Tony Schoeffler) wrote:
      [color=blue]
      >I have an Access application where it would desirable to open a word
      >file directly from an Access Form. I have been able to open the Word
      >application, but I have not been able to have it open with the desired
      >file. Any help or sample code would be appreciated.[/color]

      Post the code you have used to open Word. Usually, all you need to do
      is add to the documents collection of the Word object. For example,
      if you used:

      Dim objWord as object
      Set objWord = CreateObject("W ord.Application ")
      objWord.visible = True
      objWord.documen ts.open "c:\mydirectory \myworddocument .doc"

      mike

      Comment

      Working...