Hi
I have this code below which works ok in 32bit windows
Private Sub runreport_Click()
Dim myPath As String
myPath = "C:\Program Files\Crystal Delivery\crystaldelivery.exe"
Call Shell(myPath, 1)
End Sub
However, we now have a new computer running 64bit windows and the path is now in a different place and the code fails and highlights
Call Shell(myPath, 1)
This is because the path on the 64bit computer is different. Is it possible to have 2 different mypath = in the code and if so how do I add it in.
Thanks
I have this code below which works ok in 32bit windows
Private Sub runreport_Click()
Dim myPath As String
myPath = "C:\Program Files\Crystal Delivery\crystaldelivery.exe"
Call Shell(myPath, 1)
End Sub
However, we now have a new computer running 64bit windows and the path is now in a different place and the code fails and highlights
Call Shell(myPath, 1)
This is because the path on the 64bit computer is different. Is it possible to have 2 different mypath = in the code and if so how do I add it in.
Thanks