Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS ACCESS-VBA-PDF "File does not begin with '%PDF-" ERROR CATCHING

Status
Not open for further replies.

sam4help

Programmer
Jul 22, 2011
74
AE
Dears,

I am using MS Access Form - MS Access DB - PDF ActiceX
Where I have a table from where I am getting the record values and path of pdf. Then I load this PDF into the PDF Viewer.
All works well till now; but then when there is any file physical file missing then I am getting the "File does not begin with '%PDF-" error and application gets disturbed.
Can anyone help me with "How to catch this Error before hand"
I tried On Err goto statements it didn't helped; is there a way to get catch of this may be from pdf side.

Best Regards,

Sam
 
Thanks I got it resolved by checking the "file exist" before passing the value to the Active X.

Best Regards,

Sam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top