473,385 Members | 1,531 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Scheduling a module to run

33
Hey guys...
I want to schedule a module to run once every 3 months starting from set date, say August 1. Can I program a macro to run this module every 3 months? I know you could use the windows scheduler, but I would love to do this programmatically.
Jul 25 '08 #1
5 3152
ADezii
8,834 Expert 8TB
Your best bet, in my opinion, would be to use a Scheduling Program in conjunction with the /x Command Line Access Option which will run a Macro. The following code will run Macro1 in Test.mdb in the C:\TestDir\ Directory. The timing of this Event would be controlled by the Scheduling Application.
Expand|Select|Wrap|Line Numbers
  1. "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "C:\TestDir\Test.mdb" /x Macro1
Jul 26 '08 #2
owuraku
33
Your best bet, in my opinion, would be to use a Scheduling Program in conjunction with the /x Command Line Access Option which will run a Macro. The following code will run Macro1 in Test.mdb in the C:\TestDir\ Directory. The timing of this Event would be controlled by the Scheduling Application.
Expand|Select|Wrap|Line Numbers
  1. "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "C:\TestDir\Test.mdb" /x Macro1
I havent used a scheduling program before. Could you be a little more in-depth, if possible outline the steps and how to access the scheduling program?

Thanks bud...you're a life saver.
Jul 28 '08 #3
ADezii
8,834 Expert 8TB
I havent used a scheduling program before. Could you be a little more in-depth, if possible outline the steps and how to access the scheduling program?

Thanks bud...you're a life saver.
  1. Create a Batch File, and make sure it has the *.bat extension. It should look something like the following:
    Expand|Select|Wrap|Line Numbers
    1. @Echo Off
    2. cls
    3. "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "C:\TestDir\Test.mdb" /x Macro1
    4. Exit
  2. In Windows XP
    1. Programs ==> Accessories ==>
    2. System Tools ==> Scheduled Tasks ==>
    3. Add Scheduled Task ==> Scheduled Task Wizard
    4. Browse ==> Select previously created Batch File
    5. Next
    6. Set the Timing Intervals on next 2 Screens
  3. Good luck, and let me know how you make out.
Jul 28 '08 #4
owuraku
33
  1. Create a Batch File, and make sure it has the *.bat extension. It should look something like the following:
    Expand|Select|Wrap|Line Numbers
    1. @Echo Off
    2. cls
    3. "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "C:\TestDir\Test.mdb" /x Macro1
    4. Exit
  2. In Windows XP
    1. Programs ==> Accessories ==>
    2. System Tools ==> Scheduled Tasks ==>
    3. Add Scheduled Task ==> Scheduled Task Wizard
    4. Browse ==> Select previously created Batch File
    5. Next
    6. Set the Timing Intervals on next 2 Screens
  3. Good luck, and let me know how you make out.
Bud...
I am yet to try out the above. However before I proceed I have been wondering about something. Since this Database is going to be shared amongst users within a network, will the process still run even when my workstation is turned off? I may not be right, but I am of the impression that once I set up the scheduling on my workstation, my absence from work on a day the macro is supposed to be automated will fail. Am I right or am I just being paranoid?
Jul 29 '08 #5
ADezii
8,834 Expert 8TB
Bud...
I am yet to try out the above. However before I proceed I have been wondering about something. Since this Database is going to be shared amongst users within a network, will the process still run even when my workstation is turned off? I may not be right, but I am of the impression that once I set up the scheduling on my workstation, my absence from work on a day the macro is supposed to be automated will fail. Am I right or am I just being paranoid?
Since this Database is going to be shared amongst users within a network, will the process still run even when my workstation is turned off?
A small point you should have mentioned from the beginning, no it will not run.
Jul 29 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Gilles Leblanc | last post by:
Hi I have started a small project with PyOpenGL. I am wondering what are the options for a GUI. So far I checked PyUI but it has some problems with 3d rendering outside the Windows platform. I...
6
by: Tony Proctor | last post by:
Hi everyone We're experiencing some serious anomalies with the scheduling of ASP threads. I'd be interested to hear if anyone knows what algorithm is used (e.g. simple round-robin, or something...
13
by: Mike | last post by:
Normally scheduling a job is a very elementary operation but for some hidden reason I've been unable to schedule a job which runs on a 28 day cycle, even though I have at least 16 other jobs...
3
by: mirek | last post by:
Hello, My ASP.NET application must have additional functionality which isn't typical for ordinary web use. It is: - connecting to the other server using specified protocol (an option to...
3
by: Alphonse Giambrone | last post by:
Can anyone point me toward a good example of an asp.net scheduling app? Preferrably in vb.net. TIA -- Alphonse Giambrone Email: a-giam at customdatasolutions dot us
1
by: Majed | last post by:
hi I'm planing to make scheduling app and need your advice on the best way to do that,and how to save the tasks to be executed and retrive their data at the right time. your input will be highly...
4
by: Dinsdale | last post by:
I'm looking at adding scheduling features to an application and I wanted to ask the community about any experience with scheduling components, either open source like from code project or from a...
2
by: kmdo | last post by:
Hi everybody... well i'm writing a very interesting program, but i need help making an scheduling module and not sure where to start...so please some body help me!!!
2
Ritchie
by: Ritchie | last post by:
Please can anyone help me with d programs in C for CPU scheduling: WAP to show FCFS scheduling algorithm. WAP to show SJF scheduling algorithm. WAP to show Priority scheduling algorithm. WAP...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.