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

Scheduling Macro's 1

Status
Not open for further replies.

NOPOPNOSTYLE

IS-IT--Management
Apr 9, 2002
38
0
0
GB
Hi Everyone

Is is possible to write a Module that will schedule a Macro to run at a specific time every day based on a server's bios clock?

Many Thanks

Lord Exell
 
Take a look at this thread. It should get you started.

Paul

thread702-382899
 
Paul

That works fine, however one small hitch. The Macro I'm running uses the Copy Object Function to Copy a table and rename it as a existing table thus overwriting it, when run manually it prompts a "yes/no" pop up box asking whether you wish to overwrite the existing table. Is thier a way of getting the macro to say "yes" to this question automatically every time?

Lord Exell
 
An alternative to Windows Task Scheduler which uses less resources and encrypts your password info for scheduling tasks in secured databases is HAL, a freeware app you can download from (search for "Handy Access Launcher" to find it).

In answer to your follow-up question, why not get the macro to delete the existing object first, then copy over it - this won't cause a "confirm" prompt.

If the idea of deleting the old object before you've copied the new object fills you with paranoia about lost objects, you might want to try renaming the old object rather than deleting it. The sequence of events would then be:

1. Rename old object
2. Copy new object to original name of old object
3. Delete renamed object

This is a bit long-winded but will work if you want to do everything in a macro. [pc2]
 
you can also start the macro by adding the action "SetWarnings" to "No" (this will turn all yes/no prompts off) and then end your macro with the action "SetWarnings" to "Yes" to turn them back on.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top