G
Guest
In my application I need to open a program to view a picture, I have used
some code that John nurick posted, but I can't get it to work, it is:
Dim strPicture As String
Dim strViewer As String
strViewer = "C:\Program Files\ACD Systems\ACDSee\5.0\ACDSee5.exe"
strPicture = Me![ImgControl].Picture
Shell """" & strViewer & """ """ & strPicture & """", vbNormalFocus
This code runs when I double click on the picture held in ImgControl, and by
using a couple of message boxes, I know that the values of strViewer and
strPicture are correct.
When I double click, nothing appears to happen, although I know the code is
actually being executed.
My suspicion i is that there's something wrong with the syntax of the
'Shell' line, but I can't see it - maybe another pair of eyes will see
something I didn't.
Thanks
Neil
some code that John nurick posted, but I can't get it to work, it is:
Dim strPicture As String
Dim strViewer As String
strViewer = "C:\Program Files\ACD Systems\ACDSee\5.0\ACDSee5.exe"
strPicture = Me![ImgControl].Picture
Shell """" & strViewer & """ """ & strPicture & """", vbNormalFocus
This code runs when I double click on the picture held in ImgControl, and by
using a couple of message boxes, I know that the values of strViewer and
strPicture are correct.
When I double click, nothing appears to happen, although I know the code is
actually being executed.
My suspicion i is that there's something wrong with the syntax of the
'Shell' line, but I can't see it - maybe another pair of eyes will see
something I didn't.
Thanks
Neil