I think I understand that this problem cannot be fixed as Access 2016 has embedded IE7 and we are not able to change that.
So here is my problem. I have a table of transactions and one of the fields points to a pdf "picture" of the paper invoice received. I have code which opens the pdf file within a webbrowser control. I don't want to do anything else - just view the pdf .
And my code WORKS, the pdf file is displayed within the control.
BUT if I want to loop through a set of pdf files displaying each successifly then some work but some fail:-
Now I will have to live with this - since if I exit the loop and reenter then there is a chance that the pdf will display.
I have tried putting a delay in the loop but it still fails - and it seems to be less prone to failure on my development machine than the production machine - which has very similar configurations??
I would like to be able to trap this error message and just keep trying, rather than having to exit the loop and reenter.
I have tried this code:
but the "Fails" message never appears just the underlying message from whereverCode:On Error GoTo PDFfail imgInvoice.Visible = False wbDisplayInvoice.Visible = True wbDisplayInvoice.ControlSource = "=""" & gPaperInvoiceFull & """" cmdOK.SetFocus Me.InsideHeight = wbDisplayInvoice.Top + wbDisplayInvoice.Height + 5000 Exit Sub PDFfail: MsgBox "PDF Fails"
So anyone know how to trap this message please???????