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

how to schedule a macro

Status
Not open for further replies.

krishreddy

Technical User
Jul 20, 2006
2
US
hi,

cud anyone let me know how to schedule a macro?

waiting for reply.

krishreddy
 
How are ya krishreddy . . .
[ol][li]Set an [blue]AutoExec[/blue] macro to run your code. Be aware . . . you can use any macro to run code residing in VBA![/li]
[li]Use Microsofts [blue]Task Scheduler[/blue] to open the db ([blue]AutoExec[/blue] automatically runs when you open a db).[/li]
[li]Allowing enough time for the macro to run, you can subsequently close the db with [blue]Task Scheduler[/blue].[/li][/ol]
[blue]Your Thoughts?[/blue]

Calvin.gif
See Ya! . . . . . .
 
krishreddy . . .

In my prior post 3 should read

[blue]3. In code when the routine is complete, close the db.[/blue]

Calvin.gif
See Ya! . . . . . .
 
Hi Guys
AceMan1 is right as always, but don't forget that you can also use /x "macroname" as an argument when opening Acess. See Help for command-line options for full syntax. And you can still use the Task Scheduler.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top