•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MS Access and FileMaker Pro section within the Web Development category of DaniWeb, a massive community of 422,412 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 5,052 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS Access and FileMaker Pro advertiser: Programming Forums
Views: 1284 | Replies: 2
![]() |
•
•
Join Date: Jan 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
You don't say whether you want to call it from a menu or a button or something else, but whatever the mode, you'll want to do if from a macro attached to that mode.
In your form, create a button (for example) and for the OnClick property, call the macro macOpenPDF (for example). In the Action column, use "runapp" and for the command line argument, you must reference the path and filename to Adobe Acrobat (the application) and then, the path to the actual document you want to open. In my test form, here is my command line argument for the runapp action:
C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe c:\clc-drive.pdf
Save the macro and the form, then click that sucker and see it work! Of course, you can use this same method to open any document from any valid application, even text files in Notepad. But make sure your users will have the same applications at the same path destinations or the logic will fail.
Good luck- SLH
In your form, create a button (for example) and for the OnClick property, call the macro macOpenPDF (for example). In the Action column, use "runapp" and for the command line argument, you must reference the path and filename to Adobe Acrobat (the application) and then, the path to the actual document you want to open. In my test form, here is my command line argument for the runapp action:
C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe c:\clc-drive.pdf
Save the macro and the form, then click that sucker and see it work! Of course, you can use this same method to open any document from any valid application, even text files in Notepad. But make sure your users will have the same applications at the same path destinations or the logic will fail.
Good luck- SLH
•
•
Join Date: May 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
this macro works fine..
but in my access 2003 application, i am able to save the reports in pdf format and then save them to c:\pdfreports\ *.pdf
i have up to 10 reports saved as pdf's in the directory.
what i want todo is to have the user open a combo box which contains the 10 reports in the above dir. when the click on the desired report i want the pdf to open with the selected one being opened..
as you know, the macro is not able to be changed to open the selected report.
there has got to be some code to allow me to input thcorrect selected pdf report into the command to be opened in the AcroRd32.exe can' use RUNAPP cause it's for macro's.
what can i do ??
thanks
joe archer sr san diego
but in my access 2003 application, i am able to save the reports in pdf format and then save them to c:\pdfreports\ *.pdf
i have up to 10 reports saved as pdf's in the directory.
what i want todo is to have the user open a combo box which contains the 10 reports in the above dir. when the click on the desired report i want the pdf to open with the selected one being opened..
as you know, the macro is not able to be changed to open the selected report.
there has got to be some code to allow me to input thcorrect selected pdf report into the command to be opened in the AcroRd32.exe can' use RUNAPP cause it's for macro's.
what can i do ??
thanks
joe archer sr san diego
![]() |
•
•
•
•
•
•
•
•
DaniWeb MS Access and FileMaker Pro Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
access adobe blue gene chips code combo data dell development dos drivers dropdownlist enterprise firefox graphics hardware ibm ibm. news intel intel ibm internet linux memory microsoft module mozilla net news open open source open-source opengl openoffice pdf red hat reuse russia software source spam sun super supercomputer supercomputing system ubuntu vista web windows x86
- How to open pdf documents from a Microsoft Access Form (MS Access and FileMaker Pro)
- Open In New Window Php (PHP)
- code for open PDF (MS Access and FileMaker Pro)
- 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)
Other Threads in the MS Access and FileMaker Pro Forum
- Previous Thread: Automating Excel with Access
- Next Thread: MS Access Forms - Deleting related records from other tables when deleting a record


Linear Mode