link to pdf

kitty77

Registered User.
Local time
Today, 04:16
Joined
May 27, 2019
Messages
715
I have a form with a button that links to a pdf. It works fine...

Application.FollowHyperlink "\\customers\invoices\" & [Minvoiceno] & ".pdf"

However, I would like to have a msgbox come up if the pdf does not exist.

Not sure how to approach this...

Thanks.
 
See if this helps, it will work for Access as well.

 
Actually, the way I'm using it now is it opens the pdf if it is there. And if it's not I get an error.
So, I want it to open the pdf if there and give me a message if its not.
 
@kitty77 That is the link Doc Man posted. It will check if the file is there or not and give you a message if it's not.
 

Users who are viewing this thread

Back
Top Bottom