954,566 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to open pdf documents from a Microsoft Access Form

hi friends!
From my Microsoft Access form I would like to hyperlink to a pdf document. At present each record contains a document name and a full file path to where the document is stored. I would like to open adobe Reader and view the specified document.

please give me tips regarding this.If possible explain with codes.
Thanku in advance.

Elanch

elanch
Newbie Poster
23 posts since Jul 2007
Reputation Points: 10
Solved Threads: 0
 

Hi, to do this, insert a hyperlink by pressing ctrl + k, and then select the file you want to open, but make sure u dont change the location of the pdf file after uve created the hyperlink.

hope this helps

stevenp123
Newbie Poster
12 posts since Nov 2007
Reputation Points: 10
Solved Threads: 1
 

This opens your file with the default registered program in Windows.

Put this in a bas module (in 1 line):

Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Public Const SW_SHOW = 1

'***********************************
'Put this in a command button in your form

ShellExecute Me.hwnd, "open", "C:\Carpeta\Manual.pdf", "", "", SW_SHOW

hi friends! From my Microsoft Access form I would like to hyperlink to a pdf document. At present each record contains a document name and a full file path to where the document is stored. I would like to open adobe Reader and view the specified document.

please give me tips regarding this.If possible explain with codes. Thanku in advance.

Elanch

wplay12
Newbie Poster
1 post since Jul 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: