Question : Set up windows scheduled task run from vba

I have a access program I run occassionally on a few of my clents servers. Best to run at night when no-one is logged in.

I would like to set some settings during the day in the access DB and then schedule it to run overnight.

It would be nice if I could set up the scheduled task or make one active to run from within access so I could just logon and push a button in accesss to have run that night. Currently I need to go into scheduled tasks and manually set up.

At there any way of setting up a scheduled task from vba.

Answer : Set up windows scheduled task run from vba

This post contains code to work with several API calls:

http://www.andreavb.com/forum/viewtopic_1507.html

Note also the link immediately beneath the code section:
http://www.tek-tips.com/gviewthread.cfm/lev2/4/lev3/33/pid/713/qid/356060
Random Solutions  
 
programming4us programming4us