start code from .bat or .vbs

clive2002

Registered User.
Local time
Today, 00:21
Joined
Apr 21, 2002
Messages
90
I have code i want to start in a database with a .bat script or preferably a .vbs script.

I know i can set the code to run when a form is opened and set that form to open with the database and then write the script to launch the database, but i dont want to do this.

i need to directly launch the code.
 
You are limited to using the AutoExec macro if you want to run the .bat file when the db is opened.

You will have to call the .bat file with the Shell function. I suggest creating a public function that will call the .bat file. Then you can use the RunCode macro option to launch your public function.

Is there a reason you have to use a .bat file to do whatever?

HTH
 

Users who are viewing this thread

Back
Top Bottom