| | |
How to open pdf documents from a Microsoft Access Form
Please support our MS Access and FileMaker Pro advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2007
Posts: 23
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Jul 2009
Posts: 1
Reputation:
Solved Threads: 0
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
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
![]() |
Similar Threads
- Is it possible to display report in Visual Basic which is created in Microsoft Access (Visual Basic 4 / 5 / 6)
- how to open a pdf file using form in access and creation of browser button (Visual Basic 4 / 5 / 6)
- How to open pdf documents from a Microsoft Access Form and Creation of Browser (MS Access and FileMaker Pro)
- I hava trouble with Microsoft Access database, Pls help me. (Java)
Other Threads in the MS Access and FileMaker Pro Forum
- Previous Thread: field adding by user
- Next Thread: Update Form Controls on Record Change
| Thread Tools | Search this Thread |





