User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Apr 2008
Posts: 1
Reputation: jasong911 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jasong911 jasong911 is offline Offline
Newbie Poster

Open a pdf in ms access

  #1  
Apr 22nd, 2008
Hi how do i call a pdf file from a form in ms access please ?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2008
Posts: 2
Reputation: shuff is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
shuff shuff is offline Offline
Newbie Poster

Re: Open a pdf in ms access

  #2  
Apr 22nd, 2008
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
Reply With Quote  
Join Date: May 2008
Posts: 1
Reputation: joe archer sr is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
joe archer sr joe archer sr is offline Offline
Newbie Poster

Open a pdf in ms access 2003 using code to select pdf

  #3  
May 28th, 2008
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
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MS Access and FileMaker Pro Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MS Access and FileMaker Pro Forum

All times are GMT -4. The time now is 9:29 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC