A
accessuser1308
Hello,
I currently have a form that contains a field that hyperlinks to a picture
file on my computer (jpeg and/or bmp). I do not want to store the actual
picture in my database, using a bound object, as it will make the database
huge. I have placed a web browser on my form and I would like to have it
display the picture located in the hyperlink. I have used the code below,
but I get an error stating that the file cannot be opened. I can open the
picture in IE7, but not in the web browser on the form. I would really like
to be able to view my pictures on the form, without using a bound
object...and without going through the steps to convert them to html files.
Also, I really want to avoid having to click the link to have another program
open. I'd like to go record to record and have the images there, without
bogging down the database. I have had success using the web browser with htm
files saved from word and excel. Is it possible to have an image show up in
the web browser? Any suggestions would be greatly appreciated.
Thank you
Web Browser Code:
Private Sub Form_Current()
'Navigate to the current record's Web site
'If there's no URL stored in the field, then display Google search engine.
If Len([Image]) > 0 Then
ImageBrowser.Navigate URL:=[Gel]
Else
ImageBrowser.Navigate URL:="www.msn.com"
End If
End Sub
I currently have a form that contains a field that hyperlinks to a picture
file on my computer (jpeg and/or bmp). I do not want to store the actual
picture in my database, using a bound object, as it will make the database
huge. I have placed a web browser on my form and I would like to have it
display the picture located in the hyperlink. I have used the code below,
but I get an error stating that the file cannot be opened. I can open the
picture in IE7, but not in the web browser on the form. I would really like
to be able to view my pictures on the form, without using a bound
object...and without going through the steps to convert them to html files.
Also, I really want to avoid having to click the link to have another program
open. I'd like to go record to record and have the images there, without
bogging down the database. I have had success using the web browser with htm
files saved from word and excel. Is it possible to have an image show up in
the web browser? Any suggestions would be greatly appreciated.
Thank you
Web Browser Code:
Private Sub Form_Current()
'Navigate to the current record's Web site
'If there's no URL stored in the field, then display Google search engine.
If Len([Image]) > 0 Then
ImageBrowser.Navigate URL:=[Gel]
Else
ImageBrowser.Navigate URL:="www.msn.com"
End If
End Sub