I have a field with a file name in it, the file could be any type (.doc/.xls/.tif/.mp3).
What I am trying to do is open it with the default software program (as it would double-clicking on it in windows explorer) with the "on double click" event.
I tried this but doesn't work:
-----------------
Private Sub InDocName_DblClick(Cancel As Integer)
Dim strFile As String
strFile = "c:\Windows\Explorer.exe " & "C:\Cendama\Riny\Inbox\" & Me![InDocName]
Dim RetVal
RetVal = Shell(strFile, 1)
End Sub
-----------------
Can anyone help pls?
Riny
What I am trying to do is open it with the default software program (as it would double-clicking on it in windows explorer) with the "on double click" event.
I tried this but doesn't work:
-----------------
Private Sub InDocName_DblClick(Cancel As Integer)
Dim strFile As String
strFile = "c:\Windows\Explorer.exe " & "C:\Cendama\Riny\Inbox\" & Me![InDocName]
Dim RetVal
RetVal = Shell(strFile, 1)
End Sub
-----------------
Can anyone help pls?
Riny