changing image display application

D

Duck

I have a form that is designed to display stored images of customer
records which have been scanned and stored on disk. My problem is
that the system wants to display the images using Microsoft Paint and
I want them to be opened with Microsoft Office Picture Manager. I
have tried several methods to change the default application with
which the images are opened, and it seems to work, meaning that
Picture Manager is used when I double click on an image file in the
file system explorer. However when I try to use the database form to
open the same file, the system reverts back to opening it with
Microsoft Paint. I'm at a loss..any help would be greatly
appreciated.

Private Sub OpenDoc_Click()
Dim strDoc As String
If Not IsNull(Me.cmbScannedImages) Then
strDoc = "C:\Scanned Images\" & Me.cmbScannedImages
FollowHyperlink strDoc
End If
End Sub
 
P

Pete D.

I would shell out to the specific program I want and pass it the file name.
Windows file associations can change with installation of many programs and
some are quite stubborn. For instance, adobe acrobat 7 likes to be the
default PDF program and will frequently steal away reader as the default.
See

http://www.mvps.org/access/ and search for shell for some ways to do it.
 

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