open pdf file with Access!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yang
    New Member
    • Aug 2007
    • 3

    open pdf file with Access!!

    hi
    Basicly i have i PDF file which is in special folder. Thus i want to create a button in access so when ever i click on, it will open my file.
    Some one could help me with this pls! even to open the folder is ok with me
  • dima69
    Recognized Expert New Member
    • Sep 2006
    • 181

    #2
    Originally posted by yang
    hi
    Basicly i have i PDF file which is in special folder. Thus i want to create a button in access so when ever i click on, it will open my file.
    Some one could help me with this pls! even to open the folder is ok with me
    You can use ShellExecute API function. For more details about the function usage look HERE

    Comment

    • yang
      New Member
      • Aug 2007
      • 3

      #3
      hi iam not the programmer with SQL, so could you help me ti deal with this thing... Thax for ur help!!

      Comment

      • JConsulting
        Recognized Expert Contributor
        • Apr 2007
        • 603

        #4
        Originally posted by yang
        hi
        Basicly i have i PDF file which is in special folder. Thus i want to create a button in access so when ever i click on, it will open my file.
        Some one could help me with this pls! even to open the folder is ok with me

        Create a button. Go to it's "On Click" event and put this

        Code:
        FollowHyperlink "C:\TestFolder\YourFile.pdf"
        The Followhyperlink will open the file as long as it's a filetype that your computer is set up to open with Acrobat viewer.
        J

        Comment

        • yang
          New Member
          • Aug 2007
          • 3

          #5
          Originally posted by JConsulting
          Create a button. Go to it's "On Click" event and put this

          Code:
          FollowHyperlink "C:\TestFolder\YourFile.pdf"
          The Followhyperlink will open the file as long as it's a filetype that your computer is set up to open with Acrobat viewer.
          J
          IT is does work :|, i already put it in "click on" Function but when i clicked it, it didn't appeared anything..

          Comment

          Working...