Launch Program from Access

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Below is the shortcut I would use to launch the app from the Windows Desktop:

Target: "K:\Texlink GPRS\Gpstrack.exe"
Start in: "K:\Texlink GPRS"

How would I launch the same program from Access? I can get the program to
launch, but I can't specify the starting folder, resulting in the GPstrack
throwing an error.

Thanks,

Dave
 
here's a simple option:

Private Sub Command29_Click()
Call Shell("K:\Texlink GPRS\Gpstrack.exe", 1)
End Sub

add error handling for safety

Bob
 
hi Bob,
here's a simple option:
Call Shell("K:\Texlink GPRS\Gpstrack.exe", 1)
Using the ShellExcute method gives you the ability to choose any
starting folder, when using the parameter lpDirectory.

mfG
--> stefan <--
 
Thanks, I'll give it a go.

Dave

Stefan Hoffmann said:
hi Bob,

Using the ShellExcute method gives you the ability to choose any
starting folder, when using the parameter lpDirectory.

mfG
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top