I got it working!
Thanks for all of your help, but it wasnt the code which was the problem lol!
After all of that i used a simple VBA.Shell command to run the .bat file. The problem was that because the .bat was being run from a network folder, when the command prompt was appearing it was trying to run the file using a UNC path name. The command prompt does not accept the UNC path and the command prompt was reverting to my c: drive...
User Profile
Collapse
-
Hi ADezii,
Thank you for the demo and the previous post, they were brilliant and i wish i could say that they worked, but again the command prompt is opening and closing straight away and without retrieving/writing anythin to the output.txt file. Im unsure of what else i can do. The .bat file is in a network mapped file, and is completely functional when clicked and when executed from Run on the windows Start menu. The .bat file works...Leave a comment:
-
Could you please give me an example of how to do this, because i have never used this function before and am unsure on hw to use it. I have tried a few various methods but it keeps on returning the same errors. I used the following code but it comes up with "Compile error: Expected ="...Leave a comment:
-
Running .bat from Access
I am trying to run a .bat file from access. On the click of a search button (btnSearch) I incorperate data entered into a text box (txtSearch) to print a script into a text file (script.txt). The .bat file which i am trying to execute uses this script, telnets to a remote computer and creates another text file with the output from its findings.
Currently the script is being written to the file without any problems, but the command prompt for... -
Run Time Error 2110: cant move the SetFocus control
I am experiencing a problem when trying to move the setfocus to text field txtSearchDump, if i do not place the text into this field the query which i am initially trying to run does not execute. Any advice would be very helpful
Thanks
Joe
...Code:Select Case Me.optSearchCriteria.Value Case 1 strSQL = strSelect & strFrom & strTitle Case 2 strSQL
No activity results to display
Show More
Leave a comment: