Opening picture using MS Picture & Fax Viewer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kevin

    Opening picture using MS Picture & Fax Viewer

    Using the following code:

    Dim q As String
    q = Chr(34)
    RetVal = Shell("explorer " & q & CurrentProject. Path & "\" & Me.Location &
    "\" & Me.Image & q, vbNormalFocus)

    I am able to open a windows folder related to the current record. I would
    also like to allow the user to dblclick the employees headshot to open that
    photo using the Microsoft Picture & Fax Viewer. Since this is not a stand
    alone program, I'm having some dificulties. The path to that file is as
    follows:

    rundll32.exe %SystemRoot%\Sy stem32\shimgvw. dll,ImageView_F ullscreen %1

    I tried to replace "explorer" with the line above but its a no go. Any
    thoughts on alternatives?


Working...