Quick Q for you guys. I've had this problem in the past, and I got it to work then, however I don't remember how.
Trying to make a macro run from command prompt. I'm trying to run a macro that runs a piece of code that exports an excel file, then closes the database Trying to schedule this to run each night at like 4am. So I tried creatin a batch file to be ran through the windows task manager at the set time... and the batch file is basically
\\mynetdrive\dbdir\mydb.dbs /x macroname
I've also tried this with a shortcut.
For some reason this doesn't work.. all this batch file is doing is opening up the database, but it won't run the macro and close. Please help...
Also, is taskmanager the only way to automate stuff like this, because I'd rather ont be logged into the comp at work all night for taskmanager to run, and I don't think taskmanager runs if no one is logged in.
-Josh
------------------
-JPeters
Got a helpful tip for Access Users? Check out and contribute to 'How to Keep Your Databases from becoming Overwhelming!'
thread181-293590
jpeters@guidemail.com
------------------
Trying to make a macro run from command prompt. I'm trying to run a macro that runs a piece of code that exports an excel file, then closes the database Trying to schedule this to run each night at like 4am. So I tried creatin a batch file to be ran through the windows task manager at the set time... and the batch file is basically
\\mynetdrive\dbdir\mydb.dbs /x macroname
I've also tried this with a shortcut.
For some reason this doesn't work.. all this batch file is doing is opening up the database, but it won't run the macro and close. Please help...
Also, is taskmanager the only way to automate stuff like this, because I'd rather ont be logged into the comp at work all night for taskmanager to run, and I don't think taskmanager runs if no one is logged in.
-Josh
------------------
-JPeters
Got a helpful tip for Access Users? Check out and contribute to 'How to Keep Your Databases from becoming Overwhelming!'
thread181-293590
jpeters@guidemail.com
------------------