Advertisement

08.02.2007 at 03:32PM PDT, ID: 22738981
[x]
Attachment Details

Open/run/launch vbscript file by calling it from Access VBA

Asked by enrite in Access Coding/Macros

Tags: vbscript, access, vba, file, launch

Hi All,

I need to run a vbscript from MS Access 2003.  I generate the script in VBA and store it in an external vbs file.  I then want to run/open/launch the vbs file. (The file checks to see if the Access database's ldb exists.  If so, it sleeps and rechecks until the ldb doesn't exist.  It then copies the database to another location.)

I can't seem to get the proper syntax to run/open/launch the vbs file from VBA.  The script works correctly - I run it manually when Access VBA says it can't launch or find the script.  Any suggestions?

Thanks,

enriteStart Free Trial
[+][-]08.02.2007 at 07:33PM PDT, ID: 19622271

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Access Coding/Macros
Tags: vbscript, access, vba, file, launch
Sign Up Now!
Solution Provided By: thenelson
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.03.2007 at 07:51AM PDT, ID: 19625475

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.03.2007 at 08:05AM PDT, ID: 19625594

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32