I am attempting to call a java application in Access2007 vba via a button on a form, but getting a "Java Virtual Machine Launcher" error. The code works for most any other application, so I assume I need a different routine to call the java application.
Here is the code:
Private Sub cmdMyButton_Click()
Dim f As String
f = "C:\Program Files\folder1\folder2\javaapp.exe"
Dim RetVal
RetVal = Shell(f, 1)
End Sub
Here is the code:
Private Sub cmdMyButton_Click()
Dim f As String
f = "C:\Program Files\folder1\folder2\javaapp.exe"
Dim RetVal
RetVal = Shell(f, 1)
End Sub