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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strange Problem

Status
Not open for further replies.

Klo

Technical User
Aug 28, 2002
86
US
I have a WinBatch script that uses a call function. it works just fine (outside of Access) until I try to run it using code in Access. All the wimbatch files are in the same directory.

Public Function IMX_Patientdata()


Dim CmdLine As String
CmdLine = "C:\Program Files\WinBatch\System\WinBatch.exe C:\IMX\WinBatch_Scripts\IMX.wbt"
Shell (CmdLine)
Exit Function
AppActivate "FMC Lab" ' set the focus back to Access
End Function


The script starts ok but when it gets to the call function I get a winbatch error 1400 Call File not found. It seems that function dosen't realize that the file the script is looking for is in the same directory.
Any Ideas?
 
Got it to work. Not an Access problem after all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top