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?
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?