Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I can't seem to run a shortcut in A

Status
Not open for further replies.

CTOROCK

Programmer
May 14, 2002
289
US
I can't seem to run a shortcut in Access in a form. Well it's not a shortcut it's a command that runs two things:

stAppName="C\ProgramFiles\Mobius\DocuAnalyzer\program\Autoscrp.exe" & " g:\mailread\order_track\order_track
download.bat"

Call Shell(stAppName, 1)

But it doesn't seem to work. I can run both of them. The first one opens a program and the second is a file that it runs to upload info to an excel spreadsheet. I can do it from the explorer, but not in access. Can anyone help?

Thanks in advance "The greatest risk, is not taking one."
 
Try executing each command individually. (Call Shell for one, then for the other.) You can also try ShellExecute.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top