Re: run an Access query from windows scheduler
- From: MGFoster <me@xxxxxxxxxxx>
- Date: Thu, 30 Mar 2006 23:31:33 GMT
sumGirl wrote:
Is it possible to run an access query from the scheduler? I need to
update a table in the middle of the night, and so I would like to set
up a job on a machine thats on all night so I dont have to manually do
it.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
An easy way is to create a shortcut to the query (just right-click the
query in the DB window & drag to the desktop). Then set up the
scheduler to run the shortcut. After the query runs Access will remain
open until you give a command to close it or someone manually closes it.
If you want more control you can set up a routine or macro in the Access
file. Use a batch file (.bat) w/ a command line like this (all one
line):
"c:\program files\microsoft office\office10\msaccess.exe"
"c:\MyDatabase.mdb" /x MyMacroName
exit
The command line switch /x means run the macro named after the switch.
To get a VBA routine to run use the /cmd option. Then you have to use
VBA's Command function to retrieve the cmd & run it. See the Access VBA
help topic "Command Function" for more info.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBRCxqV4echKqOuFEgEQKkJQCfdx1SAcDp3PEyWVXpC1Kyn5dtmqQAoMtF
1I2BkeawN4g4bVFmq5IOOd2o
=svAF
-----END PGP SIGNATURE-----
.
- References:
- run an Access query from windows scheduler
- From: sumGirl
- run an Access query from windows scheduler
- Prev by Date: Re: SP2 seriously Impacts Access 97 Performance
- Next by Date: Re: Straight horisontal line trough single-line graph
- Previous by thread: run an Access query from windows scheduler
- Next by thread: Re: run an Access query from windows scheduler
- Index(es):
Relevant Pages
|