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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open image in access form

Status
Not open for further replies.

rsbutterfly16

IS-IT--Management
Apr 19, 2007
53
US
hi guys i have a form which displays an image for each of my products. according to which product the user chooses in my the table the images displays. Now is there a way than when the user double clicks for the image to open in windows picture and fax viewer?


Any help will be greatly apreciated!!
 
Try this:

Code:
PathToPicture = "C:\Docs\Pic.JPG"
Dim S As Object
Set S = CreateObject("WScript.Shell")
S.Run "rundll32.exe C:\WINDOWS\System32\shimgvw.dll,ImageView_Fullscreen " & PathToPicture
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top