Solved

Automatic Update every 30 days

Posted on 2004-09-20
3
153 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

809 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