Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Developers    Comments List
Upload Images | @Reply | Bookmark | Link | Email | Next Unseen |
Access: PDF Merge and View
Zachary Hadfield 
    
6 months ago
I am building a document database for a pilot program at work. I have different tables that represent different categories of documents, and they all have a link to a PDF on a shared drive. I have a query that pulls in different form types based on some criteria the user enters, which ultimately populates a form with about 1-12 different PDFs. I'd like to create a button that merges these PDFs into one PDF and opens them in a print preview window. Any ideas?
Matt Hall  @Reply  
           
6 months ago
Having never done this myself, I would look for a utility with a Command Line Interface, like pdf tool kit or ghostscript.  You can build and issue a command to merge the files and then open the resulting file.  We use Bluebeam at work for merging pdf's but it is costly and does not have a CLI.  Someone else, having done this before, may have a better idea.
Richard Rost  @Reply  
          
8 days ago
Sorry it's taken me so long to see this. I sometimes go back and read older threads I missed.

Zachary, Matt's command-line utility suggestion is a good direction. Access can collect the PDF paths from your query and pass them to a local PDF-merging tool, such as PDFtk, to create one new file. For a workplace database, use a tool approved by your IT department and keep the original PDFs unchanged.

The button's basic sequence would be: collect the paths in the order you want, verify the files are accessible, run the merge into a uniquely named output PDF, wait for the merge to finish, check that it succeeded, and then open the result. Quote paths containing spaces. One important detail: VBA's Shell command normally returns before the external program finishes, so don't immediately try to open the output on the next line.

My FollowHyperlink lesson covers opening a PDF in its associated application. That lets the user review and print the merged PDF in their PDF viewer. Access's own report Print Preview is for Access reports, not a viewer for merging existing PDF files.

I'd get two sample PDFs merging successfully outside Access first, then connect that working command to your button.
Add a Reply Upload an Image
Next Unseen

 
 
What's This?

 

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: 10/28/2026 8:21:21 AM. PLT: 1s