Computer Learning Zone CLZ Access Excel Word Windows

But I could be wrong.

-Carl Sagan
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Open Other Programs Seminar    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Problem with open PDF files
Sohail Samson 
   
5 years ago
Hello,

I have purchased "Open External Programs, Web URLs" and by following it I was trying to open my pdf files but it doesn't let me do that. I do have created a new system path "C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader" to open "AcroRd32.EXE" but still unable to open pdf files.

Please help. Thanks.

Sohail
Alex Hedley  @Reply  
           
5 years ago
Are you using Shell or ShellEx?

The path to Adobe has spaces in it, have you double quoted the path string?

What error do you get when you try an open the document?
Sohail Samson OP  @Reply  
   
5 years ago
Hi Alex,

Thanks for your help.

I'm using "Shell" as per Richard Rost's video. I'm very new to VB coding but it's been a while working with access. Yes, I have double quoted the path string too. it is sampling doing nothing.

If Right(Attachments, 4) = ".PDF" Then
    Shell """C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe"" """ & Attachments & """", vbNormalFocus
End If

I don't know where I am making mistake.
Alex Hedley  @Reply  
           
5 years ago
Can you create a variable and set that to the pat

var file = """C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe"" """ & Attachments & """"
MsgBox file
Or
Debug.Print file

Can update your code to use that instead,
Shell file, vbNormalFocus

Then share what is returned.
Richard Rost  @Reply  
           
5 years ago
Use ShellEx. It's easier. I only really show Shell in that seminar to give you an appreciation for ShellEx and why it's so powerful.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Open Other Programs Seminar.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/2/2026 12:39:31 AM. PLT: 0s