PC Review


Reply
Thread Tools Rate Thread

Auto-run Queries

 
 
bankonit9@hotmail.com
Guest
Posts: n/a
 
      7th Nov 2007
I would like to have a query run automatically each morning and export
onto my office share drive. I cant figure out how to set a timer of
some sort to schedule the daily run.

Is this something that can be done easily with a Macro or in some
other way in Access?

 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      7th Nov 2007
On Wed, 07 Nov 2007 01:00:23 -0000, (E-Mail Removed) wrote:

>I would like to have a query run automatically each morning and export
>onto my office share drive. I cant figure out how to set a timer of
>some sort to schedule the daily run.
>
>Is this something that can be done easily with a Macro or in some
>other way in Access?


It's really easier to use Windows Scheduler to launch Access to run it. You
can have a Macro (one of the few cases I use macros) that launches the query
or code and then exits, and use the /x macroname command line switch to run
the query in the Scheduler command line. It would be something like

"%programfiles%\Microsoft Office\Office11\msaccess.exe"
"K:\somepath\yourdata.mdb" /excl /x macroname


John W. Vinson [MVP]
 
Reply With Quote
 
ali
Guest
Posts: n/a
 
      15th Jan 2008
hi John,

I understand your idea, and it sounds great. I only know how to launch a
file by using Windows Scheduler.

but i have no idea how to let it run a Macro.


and i do not understand the command line code that you have written. Will
you kindly explain it.

thanks a lot john !

--
Allen Phailat Wongakanit


"John W. Vinson" wrote:

> On Wed, 07 Nov 2007 01:00:23 -0000, (E-Mail Removed) wrote:
>
> >I would like to have a query run automatically each morning and export
> >onto my office share drive. I cant figure out how to set a timer of
> >some sort to schedule the daily run.
> >
> >Is this something that can be done easily with a Macro or in some
> >other way in Access?

>
> It's really easier to use Windows Scheduler to launch Access to run it. You
> can have a Macro (one of the few cases I use macros) that launches the query
> or code and then exits, and use the /x macroname command line switch to run
> the query in the Scheduler command line. It would be something like
>
> "%programfiles%\Microsoft Office\Office11\msaccess.exe"
> "K:\somepath\yourdata.mdb" /excl /x macroname
>
>
> John W. Vinson [MVP]
>

 
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
auto-run all of my queries nh Microsoft Access VBA Modules 3 30th Nov 2004 02:40 PM
Auto-run queries sd Microsoft Access Queries 3 21st Aug 2004 01:07 PM
Auto Run Set of Queries Rick Campbell Microsoft Access Macros 1 1st Aug 2003 09:25 PM
Auto Look-up Queries Colleen B. Microsoft Access Queries 1 11th Jul 2003 01:06 AM
Re: Auto Look-up Queries Jeff Boyce Microsoft Access Queries 0 9th Jul 2003 01:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:16 PM.