open image in another program

A

accessuser1308

I currently have a form in my database. The form has a field that records
the name of an image. I then have an image control on the form that will
display this picture using the following code:

If Not IsNull(Me.Image) Then
Me!ImageControl.Picture = "S:\Pictures" & Image & ".jpg"
Me!ImageControl.Visible = True
Else
'hide image control if no picture
Me!ImageControl.Visible = False
End If

I would like to be able to open the image (in the image control) in another
program...preferably 'windows picture and fax viewer'...or ms paint...by
double clicking on the image control. Any suggestions on how to do this
would be appreciated.

Thank you
 

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