Run VB script using code.

R

RC

Hi,

I have a VB script on hand which is quite long so I don't
want to repeat the same thing in a form.
Can I call a VB script using form programming code?
Thanks!

Regards,
RC
 
M

Michel Walsh

Hi,


You can shell execute, or follow the hyperlink made of the script file
name itself (with its extension, associated to execution of vbscript).
Following an hyperlink is like running the application "associated" with the
file extension... You have somehow more control if you call the ShellExecute
yourself.


For details about ShellExecute API, see http://www.mentalis.org/ as
example.



Hoping it may help,
Vanderghast, Access MVP
 

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