SQLDrill.com - Excel Addin for using SQL

Microsoft® Excel® based database addin

 

Go Back   SQL Drill Excel Add-in > Database Specific > Microsoft Access with SQL Drill

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-08-2009, 05:14 AM
TotallyConfused
Guest
 
Posts: n/a
Default Scheduling a query to run

Can you schedule a query to run in Access automatically? If so can someone
please tell how to go about it or where I can find info how to incorporate
this into a database. Thank you in advance for any help you can provide.
Thank you.
Reply With Quote
  #2 (permalink)  
Old 08-08-2009, 05:14 AM
June7 via AccessMonster.com
Guest
 
Posts: n/a
Default Re: Scheduling a query to run

Do you want to run even when the project is not open? I have read some about
using Windows Task Scheduler to do this. Either through a .bat or .vbs file
or directly to Access. I tried opening Access through VBScript but not having
much luck. Here is the sample code I found:
Set objAccess = CreateObject("Access.Application")
objAccess.OpenCurrentDatabase "C:\filepath\mydatabase.mdb"

Also code for .bat file (again, I can't make work):
C:\Program Files\Microsoft Office\Office\MSAccess.exe" "C:\myDB.mdb"
/macroname

If you only want to do it when project is open, what would be the condition
for initiating the action - when project opened, following data entry, time
of day? Here is one thread to check out:
http://www.tech-archive.net/Archive/.../msg01204.html
Reply With Quote
  #3 (permalink)  
Old 08-08-2009, 05:00 PM
Mark Andrews
Guest
 
Posts: n/a
Default Re: Scheduling a query to run

How about just make a macro that starts the process of running the query and
then checkout this article for
details on how to run access with command line arguments to start the macro
(from windows task scheduler):
http://bytes.com/topic/access/answer...scheduled-task

HTH,
Mark
RPT Software
http://www.rptsoftware.com
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On


All times are GMT. The time now is 04:09 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 |Website Pricer