Run .vbs file from a macro

I

iansa

I am trying to run a .vbs file from an access macro using RunApp. Is this
possible?

If not is there an alternative. I'd like to keep it all in access as it is
the last in several steps in the macro.

Thanks in advance for any help

ian
 
D

Douglas J. Steele

You need to call wscript.exe (if it's interactive) or cscript.exe (if you
just want to run it in batch).

In other words, you need

wscript.exe "C:\My Scripts\testing.vbs"

rather than simply

"C:\My Scripts\testing.vbs"
 

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

Top