Help - Adding an Image to a Form

graviz

Registered User.
Local time
Today, 04:54
Joined
Aug 4, 2009
Messages
167
I have a form I'm trying to add an image from a web site to. Here's the link:

http://sirocco.accuweather.com/nx_mosaic_400x300_public/sir/inmSIRUS_.gif

Basically this gif file is an image of the US and the weather impacting it. From what I understands it updates daily or hourly (not sure). I would like to link this image to a form so when someone opens my database it will show this image. Does anyone have an example that I could use to accomplish this? Thanks
 
You can add a 'Microsoft Web Browser' Active X control to a form, and then include code on that form like ...
Code:
Private m_wb As SHDocVw.WebBrowser

Private Sub Form_Open(Cancel As Integer)
   Set m_wb = Me.WebBrowser0.Object
   m_wb.Navigate _
      "http://sirocco.accuweather.com/nx_mosaic_400x300_public/sir/inmSIRUS_.gif"
End Sub
 
You can add a 'Microsoft Web Browser' Active X control to a form, and then include code on that form like ...
Code:
Private m_wb As SHDocVw.WebBrowser
 
Private Sub Form_Open(Cancel As Integer)
   Set m_wb = Me.WebBrowser0.Object
   m_wb.Navigate _
      "http://sirocco.accuweather.com/nx_mosaic_400x300_public/sir/inmSIRUS_.gif"
End Sub
Thanks this worked like a charm!
 

Users who are viewing this thread

Back
Top Bottom