PC Review


Reply
Thread Tools Rate Thread

How do I set a macro to run every 24 hours

 
 
Michael
Guest
Posts: n/a
 
      31st Oct 2009
I need to set a macro to run at a set time every day. I am using a database
to collect information from an external source. I am not at this computer
every day, and the information that I am retrieving is deleted every day. If
I don't get the information, it is lost. Is it possible to write a code to
make the macro run at a set time every day?
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      31st Oct 2009
Use the Scheduling tool that's built into Windows, and pass it a command
line along the lines of:

"C:\Program Files\Office\msaccess.exe" "C:\Data\MyDatabase.mdb" /x MyMacro


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Michael" <(E-Mail Removed)> wrote in message
news:C6BECEBC-1338-4EA5-A79B-(E-Mail Removed)...
>I need to set a macro to run at a set time every day. I am using a
>database
> to collect information from an external source. I am not at this computer
> every day, and the information that I am retrieving is deleted every day.
> If
> I don't get the information, it is lost. Is it possible to write a code
> to
> make the macro run at a set time every day?



 
Reply With Quote
 
Albert D. Kallal
Guest
Posts: n/a
 
      31st Oct 2009

"Michael" <(E-Mail Removed)> wrote in message
news:C6BECEBC-1338-4EA5-A79B-(E-Mail Removed)...
>I need to set a macro to run at a set time every day. I am using a
>database
> to collect information from an external source. I am not at this computer
> every day, and the information that I am retrieving is deleted every day.
> If
> I don't get the information, it is lost. Is it possible to write a code
> to
> make the macro run at a set time every day?


I explain a possible solution here:

http://www.members.shaw.ca/AlbertKal...obs/Index.html

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
(E-Mail Removed)


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to calculate hours per work order Jay Microsoft Excel Programming 10 4th Nov 2008 07:11 PM
How to sum hours in Excel Macro VBA Tazo Microsoft Excel Programming 1 9th Apr 2008 10:35 PM
Converting Hours in decimal format to Hours and minutes (short time) Gina Microsoft Access 2 26th Sep 2007 05:42 PM
Drivers Hours Timesheet - Calculate Hours Worked on Weekly Basis =?Utf-8?B?R3JhaGFt?= Microsoft Excel Misc 2 28th Jan 2007 08:40 PM
Apply a macro to all sheets - save me from hours and hours of work =?Utf-8?B?RXhjZWwnZWQgRmFpbHVyZXM=?= Microsoft Excel Programming 3 30th Jan 2006 05:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:39 PM.