Hi, I hope someone might be able to help.
This is the first time I have used the web-browser control in a form. I used this control as I wanted to view a pdf file within the form, and saw a You-tube video showing how to use the web browser. I had previously tried an Active X control, but that just didn’t seem to want to work at all.
I am running Access 2010, on Win 7 32 bit, (tried on 64 bit machine too).
Initially I was using Adobe reader as my default pdf viewer.
I typed the file location into the data control source for the web browser and initially on opening the form in Form View, it opened the pdf document fine, but in trying to close the form, go into design view, or changing the file location it seemed to have major issues with being able to close Adobe and view another file, and would take ages to close.
I decided to try another pdf viewer, and down loaded Foxit.
When opening in Form View it quickly opened the pdf in the web browser box, but then immediately showed a pop up error/information message box:
However, the box was totally blank with no message or text in it. If I clicked and moved the box the message then showed up:
“The command or action ‘’ isn’t available now.
You may be in a read-only database, or unconverted database…..”
If I closed this box, a second identical blank message box appeared (again if I moved it the same text appeared). And if I closed them both, the pdf file was correctly displayed. However, on trying to view a different pdf file, the same pop up yet again appeared twice.
From what I can find on the internet, the message “The command or action … isn’t available” would usually have some function name within the quote marks – however, my message had no name. I have not created any macros, or vba code at all, I just purely inserted the web browser in the form. I have tried creating a blank form in a new database, just putting a web browser in the form, and have got the same results. I don’t know what is generating this error message box.
In some of the original attempts, I did add the Foxit libraries in the References, and then on one attempt, forgot to do this, but still got the same pop up boxes.
I did also try the web browser control box with a word doc and excel spread sheet as the data control sources, and it opened up both Word and Excel fine – (asked if I wanted to open or save the file, but no other pop-up message boxes).
The web browser control seems to work OK now with Foxit, but I need to find a way to stop, or suppress these message boxes.
Any help or ideas would be very welcome, as I don’t really know what to try next.
Many thanks.
This is the first time I have used the web-browser control in a form. I used this control as I wanted to view a pdf file within the form, and saw a You-tube video showing how to use the web browser. I had previously tried an Active X control, but that just didn’t seem to want to work at all.
I am running Access 2010, on Win 7 32 bit, (tried on 64 bit machine too).
Initially I was using Adobe reader as my default pdf viewer.
I typed the file location into the data control source for the web browser and initially on opening the form in Form View, it opened the pdf document fine, but in trying to close the form, go into design view, or changing the file location it seemed to have major issues with being able to close Adobe and view another file, and would take ages to close.
I decided to try another pdf viewer, and down loaded Foxit.
When opening in Form View it quickly opened the pdf in the web browser box, but then immediately showed a pop up error/information message box:
However, the box was totally blank with no message or text in it. If I clicked and moved the box the message then showed up:
“The command or action ‘’ isn’t available now.
You may be in a read-only database, or unconverted database…..”
If I closed this box, a second identical blank message box appeared (again if I moved it the same text appeared). And if I closed them both, the pdf file was correctly displayed. However, on trying to view a different pdf file, the same pop up yet again appeared twice.
From what I can find on the internet, the message “The command or action … isn’t available” would usually have some function name within the quote marks – however, my message had no name. I have not created any macros, or vba code at all, I just purely inserted the web browser in the form. I have tried creating a blank form in a new database, just putting a web browser in the form, and have got the same results. I don’t know what is generating this error message box.
In some of the original attempts, I did add the Foxit libraries in the References, and then on one attempt, forgot to do this, but still got the same pop up boxes.
I did also try the web browser control box with a word doc and excel spread sheet as the data control sources, and it opened up both Word and Excel fine – (asked if I wanted to open or save the file, but no other pop-up message boxes).
The web browser control seems to work OK now with Foxit, but I need to find a way to stop, or suppress these message boxes.
Any help or ideas would be very welcome, as I don’t really know what to try next.
Many thanks.