Hello, <br>
I know this is easy, but I am new at this.....<br>
I am trying to create a button that will open directly to a document of a registered app on my machine (in this case, Crystal Reports) What's below doesn't work. <br>
<br>
In other words, I want to open the Crystal Reports report and not the exe<br>
<br>
THanks<br>
<br>
Private Sub Command0_Click()<br>
On Error GoTo Err_Command0_Click<br>
<br>
Dim stAppName As String<br>
<br>
stAppName = "C:\crw2\crw32.exe_M:\Database\Fulfillment House\State Media Codes.rpt"<br>
Call Shell(stAppName, 1)<br>
<br>
Exit_Command0_Click:<br>
Exit Sub<br>
<br>
Err_Command0_Click:<br>
MsgBox Err.Description<br>
Resume Exit_Command0_Click<br>
End Sub<br>
<br>
<br>
I know this is easy, but I am new at this.....<br>
I am trying to create a button that will open directly to a document of a registered app on my machine (in this case, Crystal Reports) What's below doesn't work. <br>
<br>
In other words, I want to open the Crystal Reports report and not the exe<br>
<br>
THanks<br>
<br>
Private Sub Command0_Click()<br>
On Error GoTo Err_Command0_Click<br>
<br>
Dim stAppName As String<br>
<br>
stAppName = "C:\crw2\crw32.exe_M:\Database\Fulfillment House\State Media Codes.rpt"<br>
Call Shell(stAppName, 1)<br>
<br>
Exit_Command0_Click:<br>
Exit Sub<br>
<br>
Err_Command0_Click:<br>
MsgBox Err.Description<br>
Resume Exit_Command0_Click<br>
End Sub<br>
<br>
<br>