Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2002
    Location
    London
    Posts
    73

    Unanswered: Opening MS Word Documents in Access

    Hi i'm using MS Access 2000 and i would like to open a word file from a click of a button. Does anyone know the vba code to do this please.

    Thanks

  2. #2
    Join Date
    Apr 2004
    Location
    Kingsland, Georgia
    Posts
    231
    in this example, i have my own path to word and the path and filename i want to open being C:\ASDP.doc
    Code:
    Shell "C:\Program Files\Microsoft Office\Office\Winword.exe C:\ASDP.doc", vbMaximizedFocus
    this also works with the path to word omitted, i.e.
    Code:
    Shell "Winword.exe C:\ASDP.doc"
    good luck

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •