Slow PDF open generates error

Pavl

Registered User.
Local time
Today, 17:56
Joined
Jan 17, 2013
Messages
56
Hello to the forum.
From a beginner using 2010 to display historical records.
A folder of individual PDF files with the project and using "FollowHyperlink CurrentProject.Path" to get each one to open from Command Button click.
This works correctly / as expected - BUT - I have a basic error message box if the file is not found "On Error GoTo ......MsgBox..."
Because it takes a short time to open the PDF the error message appears - even though the correct file is open in front of me. The error message also functions correctly if an image file is missing.
Would it be "correct" practice to introduce a delay before the MsgBox and if yes what is the best way? Or can I test to see if the file is open and so stop the error MsgBox?
 

Users who are viewing this thread

Back
Top Bottom