Using VBA, Open PDF Doc and pass search string

I tried to do this on my own but had no luck. I'd like to be able to, from my Access form, initiate opening a PDF document and passing a search word to the reader.

Does anyone have an example of this?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

You might not be able to do this unless you have the full version of Adobe loaded on each computer.  To find code samples, go to the Adobe site.  I don't have any.  Hopefully, you'll be able to find VB samples.  If all you can find is VB.Net, you would need to write a COM wrapper class to have Access talk to the com class and the com class talk to VB.Net.
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
There are also other 3rd party utilities that may be able to do this, but as Pat said you won't don't this with VBA only.

Do you have Adobe installed, or would you be using another 3rd party utility?

What's the goal with the "search" word? Are you trying to find that term in the PDF?
MCaliebeAuthor Commented:
I was hoping to use Adobe Reader. We have to do a number of comparisons to a print catalog. It would have been convenient to click a button at the record we're working on, and launch and search the PDF for the item we're currently reviewing.
Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
try this

Sub Button1_Click()
    searchStr = "PDF Files"
    PDFPath = "C:\Users\<myID>\Downloads\pdf_open_parameters.pdf"
    Shell "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe /A ""search=" & searchStr & """ """ & PDFPath & """", vbNormalFocus
End Sub

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
MCaliebeAuthor Commented:
Sorry for the delay in responding.  I've been unavailable.  I can make this work with some additions to my preferences tables.
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.