link to pdf (1 Viewer)

kitty77

Registered User.
Local time
Today, 14:14
Joined
May 27, 2019
Messages
710
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.
 

Gasman

Enthusiastic Amateur
Local time
Today, 19:14
Joined
Sep 21, 2011
Messages
14,236
See if this helps, it will work for Access as well.

 

kitty77

Registered User.
Local time
Today, 14:14
Joined
May 27, 2019
Messages
710
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.
 

GinaWhipp

AWF VIP
Local time
Today, 14:14
Joined
Jun 21, 2011
Messages
5,900
@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

Top Bottom