Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a scheduled task to run an Access 2000 Macro

Status
Not open for further replies.

paullem

Programmer
Jan 21, 2005
80
GB
I'm trying to use a scheduled task on a Windows 2000 server to run an Access 2000 macro. The scehduled task runs a .bat file which contains an access command line. The task works fine if I set the task up on my PC and point it at the batch file on the server. But if I set the scheduled task up on the server it just sits there with a status of running. Can anyone help?

The command line is as follows:
"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "D:\Applications\StaffSafety\testschedule.mdb" /user Admin /X macro1
 
I've done this before in the past couple of years and never used a BAT file. Can you simple open the file "D:\Applications\StaffSafety\testschedule.mdb", and make sure you have an Autoexecmacro that runs your code?

Steve Medvid
"IT Consultant & Web Master"

Chester County, PA Residents
Please Show Your Support...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top