Results 1 to 2 of 2

Thread: open pdf file

  1. #1
    Join Date
    Mar 2004
    Posts
    660

    Unanswered: open pdf file

    I my Access form, how can i create a button to open a pdf file. Thanks.

  2. #2
    Join Date
    Dec 2002
    Location
    Préverenges, Switzerland
    Posts
    3,740
    example:

    Private Sub shoPDF_Click()
    Dim doPDF as double
    doPDF = Shell("C:\Program Files\Adobe\Acrobat 5.0\Reader\acrord32.exe C:\thisPath\thatPath\someFile.pdf", 1)
    End Sub

    check out "shell" in help for the meanings of "1" and the value returned to doPDF

    change the paths/files to suit the details of your situation.

    izy
    currently using SS 2008R2

Posting Permissions

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