Jul 28, 2003 #1 Rich75 Technical User Jun 13, 2003 22 GB Hi could anybody tell me how to fire off a vbs script from access..... thanks Rich
Jul 29, 2003 #2 jonscott8 Programmer May 12, 2000 1,317 US Access uses VBA, use the Shell command. Jon Hawkins Upvote 0 Downvote
Jul 30, 2003 Thread starter #3 Rich75 Technical User Jun 13, 2003 22 GB Hi i have tried Shell Public sub dim retval retval = ("c:\test.vbs" end sub this gives me an error of runtime error '5': invalid procedure call or argument Upvote 0 Downvote
Hi i have tried Shell Public sub dim retval retval = ("c:\test.vbs" end sub this gives me an error of runtime error '5': invalid procedure call or argument
Jul 30, 2003 #4 tsuji Technical User Jul 25, 2001 10,675 US Hello Rich75, Should it not be ? dim retval As Integer retval=Shell("c:\test.vbs" regards - tsuji Upvote 0 Downvote
Hello Rich75, Should it not be ? dim retval As Integer retval=Shell("c:\test.vbs" regards - tsuji
Jul 30, 2003 Thread starter #5 Rich75 Technical User Jun 13, 2003 22 GB Hi tsuji Yes sorry typo on my part that still gives the same error however i changed the code to call a .bat script the .bat script then calls the vbs script i have used as a work around. if you have any ideas why it will not call the vbs script directly i would appreciate it thank Rich Upvote 0 Downvote
Hi tsuji Yes sorry typo on my part that still gives the same error however i changed the code to call a .bat script the .bat script then calls the vbs script i have used as a work around. if you have any ideas why it will not call the vbs script directly i would appreciate it thank Rich
Jul 30, 2003 #6 tsuji Technical User Jul 25, 2001 10,675 US Hello again, Would an explicit call to wscript or cscript platform do? retval=Shell("wscript c:\test.vbs" with all the path implicitly set. If yes, it could just be an unsettled association. - tsuji Upvote 0 Downvote
Hello again, Would an explicit call to wscript or cscript platform do? retval=Shell("wscript c:\test.vbs" with all the path implicitly set. If yes, it could just be an unsettled association. - tsuji
Jul 30, 2003 #7 PHV MIS Nov 8, 2002 53,708 FR Have you tried something like this:|code] retval=Shell("cscript c:\test.vbs"|/code] Hope This Help PH. Upvote 0 Downvote
Have you tried something like this:|code] retval=Shell("cscript c:\test.vbs"|/code] Hope This Help PH.
Jul 30, 2003 Thread starter #8 Rich75 Technical User Jun 13, 2003 22 GB brilliant that done it thanks alot for all your help Upvote 0 Downvote
Jul 30, 2003 Thread starter #9 Rich75 Technical User Jun 13, 2003 22 GB Hi does anybody have a script where you can display the cursor as an hourglass while the script runs ? thanks Rich Upvote 0 Downvote
Hi does anybody have a script where you can display the cursor as an hourglass while the script runs ? thanks Rich
Jul 30, 2003 #10 PHV MIS Nov 8, 2002 53,708 FR Can you do it in your Access VBA before to run the script minimized ? Hope This Help PH. Upvote 0 Downvote