Solved

AccessVB: Open/Print pdf files from Access.mdb

Posted on 2008-06-09
3
435 Views
Last Modified: 2013-11-27
I would like to open and print a pdf file using Access VB. But the code I submitted below does not work, will someone help me make it work?

Shell ("C:\Program Files\Adobe\Acrobat 8.0\Acrobat\acrobat.exe H:\Deliveries\Exxo\P6-9-08 Sams 33-0-9-DEL-2008.pdf")

Is there a way to open the pdf. without using shell? ( If I give my Access.mdb to someone who has installed adobe in a different location, it will not work)
0
Comment
Question by:ouestque
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 21744652
Application.Followhyperlink "H:\Deliveries\Exxo\P6-9-08 Sams 33-0-9-DEL-2008.pdf"
0
 

Author Comment

by:ouestque
ID: 21744922
Thanks!
0
 

Author Closing Comment

by:ouestque
ID: 31465459
Thank you so much!!!
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question