Display Web Image on an Access form

S

Stephen Rasey

I need a little help with the following functionality:

I want to have an Access form display a web based picture in an unbound
object.
the Form OnCurrent event should set in the control the URL of the picture to
be displayed.
The control should display the image zoomed, if possible.

I have tried the image control. It does not accept a web based address.

I tried the Microsoft WebBrowser control. It's .ControlSource property
does not accept a string that is a URL.

With Me.WebBrowser1
.ControlSource = "http://yahoo.com"
End With
"You entered an expression that has an invalid reference to the property
ControlSource"

The webbrowser controll will accept a drag-and-drop URL in the user
interface. But I cannot find a propery to set in VBA.

Anyone know the magic words? Or another control I should try?

Thanks in advance.
Stephen Rasey
WiserWays
Houston
http:\\excelsig.org
 
S

Stephen Rasey

Something is wrong. I am using the Microsoft WebBrowser Control.
In Properties...
OLE Class: Microsoft Web Browser
Class: Shell.Explorer.2
Intellisense doesn't show a .Navigate2 property.

With Me.WebBrowser1
.Navigate2 = "http://yahoo.com"
End With
Errors with...
"Object doesn't support this property or method."

I must be using the wrong ActiveX object, but if it isn't called "Microsoft
Web Browser" what would it be?

I am using Microsoft Office 2003.

Stephen Rasey
Houston
 
M

MacDermott

True.
It's not a property, it's a method.
Intellisense doesn't always show everything that's there, especially for
ActiveX controls.
Just type it in and try it!

- Turtle
 
S

Stephen Rasey

You gotta admit when the error message is:

"Object doesn't support this property or method."

the use of an "=" on a VALID METHOD would not be the first thing to pop into
your mind.

Stephen Rasey
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top