Combing MS Access Reports into 1 PDF file

I would like to take multiple access reports and have them append into 1 pdf file in the same directory that my database resides.  more specifically: My two reports "report1" (1 page) and "report2" (1 page) to append into a single pdf file that has 2 pages.  Can this be doen through VBA?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ste5anSenior DeveloperCommented:
Not natively. I use PDFtk - The PDF Toolkit for such simple tasks.
marku24Author Commented:
thanks but I need to do it through access.  I can't load any outside software on my machine.
You can use a program like pdftk to combine two or more pdf's into one.
Then in vba you execute a shell command to run pdftk.

    Dim command As String
    command = "cmd.exe /c G:\EE\pdftk.exe G:\EE\out1.pdf G:\EE\out2.pdf cat output G:\EE\outtest.pdf"
    Shell command

Open in new window

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

ste5anSenior DeveloperCommented:
As I  said: Not natively. Maybe there exists a plain VBA imlpementation of a PDF library, but I'm not aware of it. The cool about PDFtk is: it's free and must not be installed.
You could create a new report and include your two reports as subreports. Then print that new report to a .pdf file.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ste5anSenior DeveloperCommented:
D'oh, good spotted pdebaets..
marku24Author Commented:
so simple.  thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.