Run Macro Automatically

A

Alex

Is have a macro that runs an append and update query. I
need it to run automatically every day. Is there a way to
actually do that without someone having to phycially open
the database and run it?

Alex
 
J

Jim/Chris

I got this from a previous post

Using the windows scheduler...
- add a Scheduled Task
- migrate to Microsoft Access as the program you want to run
- when you've completed the wizard, right click to view
the properties of
the new task
- you'll need to add the path of your database, in
quotes, to the end
of the existing string in the "Run" box.
- then, at the end of the path you just added, enter
the following...
/x NameOfMacro
- it should look something like this: "C:\Program
Files\Microsoft
Office\Office\msaccess.exe" "C:\My
Documents\MyDatabase.mdb" /x NameOfMacro
--the first part may vary depending on the
version of Access
you're running--

That should do it

Jim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top