Solved

Automatic Update every 30 days

Posted on 2004-09-20
3
154 Views
Last Modified: 2008-03-03
I have an existing database that I am using to create records.  The user clicks on a button to add records.  This method is dependent on the user to do this every thirty days.  

Can Access automatically run a query every thirty days?  I want the query to autorun whether a user has been in the database or not.   Can Access update the data in a database on its own?

Scott
0
Comment
Question by:Scotto13
3 Comments
 
LVL 41

Accepted Solution

by:
shanesuebsahakarn earned 500 total points
ID: 12106680
It can't do it in itself, but you can use the Windows Task Scheduler to achieve this.

Simply write a macro that runs your query. You can then create a task with a command in this format:

"<path to msaccess.exe>" "<path to your db>" /x yourmacroname

That will run the macro at the times that you schedule.
0
 
LVL 32

Expert Comment

by:jadedata
ID: 12108284
Greetings Scotto13!

  If the query is placed in an mdb built solely to be launched and run your query

  Name a macro that launches the query "autoexec"
  Have the "autoexec" macro launch the query and then shut down the application on a good complete run
  Have Task Scheduler launch/open the mdb on your schedule

regards
:)-j-
0
 

Author Comment

by:Scotto13
ID: 12170384
Thanks shanesuebsahakarn!  This works perfectly.

Scotto13
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help in SQL 13 37
Insert Into syntax error 10 29
Random times with 12/24 hour switching 9 27
all contents of form cell highlighted access 2 9
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question