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
 
Top