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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scheduling Macro

Status
Not open for further replies.

raccess

Programmer
Dec 31, 2002
91
US
Hi,

Here is scenario, I have one application in MS Access 2000 in that I wrote one Macro to read data from text file and add into respective tables. Now I want to automate this process through some kind of scheduling.

Every month end I’m getting text file with data and then I want to run this macro to add data.

Any idea how I can call this macro from some outside process/script? How i can automate it?
Thanks in Advance,

Raccess
 
It is fairly common to execute on a given day, or at a given time on a given day, or at start-up or OnEvent. You want it executed from outside the database? I know it can be done, try google and see below link.

Sean.

 
Yes i want to execute it from outside of database - using some scheduling process on each first day of month.
 
I would suggest a form which has the Date/Time in a textbox, and triggfer the event when it hits that date/time.

I think it much easier to trigger it from inside Access, than outside. You could even put it in your start-up so that it checks the date, and if it is the 1st of the month, then it executes your query.

I have done a thread on this before, but I can't find it, or the sample db I used. If I come across it, I'll let you know.

Sean.
 
You can try creating a shortcut to your macro in a directory on your PC or network by dragging the macro from Access to the directory window.

Then you can drag that shortcut into the Task Sceduler (Control Panel). Right click on the task you just created and click "Properties" to set up the schedule.
 
Using the Task Scheduler (as JC3 proposed) is a very good way to accomplish this. I use the Task Scheduler to run a macro on a daily basis and everything runs OK.

Bye,
Jeroen

A 3d level editor in Delphi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top