Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking a URL to an Image control

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi Guys,

I am new to VB. I am trying to link a URL to an Image control. When I click that image it needs to direct to an URL address. Can anybody help in writing this code?

Thanks
 
In other words do you have an Access form with an image and you want to click that image and open Explorer and jump to a specific URL?

DougP, MCP
dposton@universal1.com

Ask me how Bar-codes can help you be more productive.
 
In the properties of that Image, select Hyperlink Address from the All Properties tab. In here type the FULL address ie etc.... This will take you to the address when you click on the image.
Alternatively you can put the following code in the Image's On Click property:

Image0.HyperlinkAddress = "Image0.Hyperlink.Follow

Where Image0 is the name of the control (image). Hope this makes sense.
Jo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top