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.
5 3152
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. - "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "C:\TestDir\Test.mdb" /x Macro1
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. - "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.
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.
- Create a Batch File, and make sure it has the *.bat extension. It should look something like the following:
- @Echo Off
-
cls
-
"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "C:\TestDir\Test.mdb" /x Macro1
-
Exit
- In Windows XP
- Programs ==> Accessories ==>
- System Tools ==> Scheduled Tasks ==>
- Add Scheduled Task ==> Scheduled Task Wizard
- Browse ==> Select previously created Batch File
- Next
- Set the Timing Intervals on next 2 Screens
- Good luck, and let me know how you make out.
- Create a Batch File, and make sure it has the *.bat extension. It should look something like the following:
- @Echo Off
-
cls
-
"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "C:\TestDir\Test.mdb" /x Macro1
-
Exit
- In Windows XP
- Programs ==> Accessories ==>
- System Tools ==> Scheduled Tasks ==>
- Add Scheduled Task ==> Scheduled Task Wizard
- Browse ==> Select previously created Batch File
- Next
- Set the Timing Intervals on next 2 Screens
- 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?
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.
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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...
|
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
|
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...
|
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...
|
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!!!
|
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...
|
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...
|
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...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
| |