Re: run an Access query from windows scheduler



Here is a vb script example using the Windows Scripting host:

dim dbe
dim db

set dbe = wscript.createobject("dao.dbengine.36")
set db = dbe.OpenDatabase("c:\dev9.mdb")
db.Execute "qryBAI_2232_Match_tmp_Cheque", 512 or 128

wscript.quit


(david)



"sumGirl" <nix.david@xxxxxxxxx> wrote in message
news:1143732415.087992.188920@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.



.



Relevant Pages

  • Re: late binding to Access 2007
    ... bind to the DAO library ... Dim dbe As Object ... Set dbe = CreateObject ... about March 2006 but I have lost that newsgroup downloads. ...
    (microsoft.public.access.modulesdaovba)
  • late binding to Access 2007
    ... bind to the DAO library ... Dim dbe As Object ... Set dbe = CreateObject ... about March 2006 but I have lost that newsgroup downloads. ...
    (microsoft.public.access.modulesdaovba)