473,382 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Automatic Data Updates in Access

newnewbie
Hi,
It might be a lot to ask from Access, but is there a way to have Access update/append/replace all the tables I need updated/replaced on its own (without the user opening the database, clicking buttons, etc.). In other words - is there a code/anything that can tell the database to wake up and run the queries/macros at 3 a.m. in the morning, for example.
Thank you!
Lena
Jun 17 '08 #1
7 1892
ADezii
8,834 Expert 8TB
I've never done it, but with XP you can create a Scheduled Task to run at a specified Date/Time. The Scheduled Task would be Microsoft Access opening a specific Database with the /x Option (Run Macro). You could virtually do anything within the confines of the Macro. As previously stated, I've never done this, so you are basically on your own with this approach. Hope this helps.
Jun 17 '08 #2
I've never done it, but with XP you can create a Scheduled Task to run at a specified Date/Time. The Scheduled Task would be Microsoft Access opening a specific Database with the /x Option (Run Macro). You could virtually do anything within the confines of the Macro. As previously stated, I've never done this, so you are basically on your own with this approach. Hope this helps.
That's great news for a start!
Thank you!
Lena
Jun 17 '08 #3
ADezii
8,834 Expert 8TB
Found this on the topic:

http://www.bluemoosetech.com/microso...0Timer%20Event
You can forget the Timer() approach since Access and the associated Form containing the Timer() Event code must be open.
Jun 17 '08 #5
You can forget the Timer() approach since Access and the associated Form containing the Timer() Event code must be open.
Thank you. I'll explore the scheduled task...
Jun 18 '08 #6
LBryant
18
I've used a DOS batch file as a shortcut to open Access and run a specific Macro. It's what ADezii is referring to, I believe. In a notepad file type:

Expand|Select|Wrap|Line Numbers
  1. @echo off
  2. "[full path to local Access application]" "[full path to database]"/x "[Name of Macro]"
  3. cls
For example:

Expand|Select|Wrap|Line Numbers
  1. @echo off
  2. "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "\\Pclfile2\ccwork\Communication Business System\media calendar.mdb"/x "GraphicsRequest"
  3. cls
Save the file as *.bat
Jun 18 '08 #7
I've used a DOS batch file as a shortcut to open Access and run a specific Macro. It's what ADezii is referring to, I believe. In a notepad file type:

Expand|Select|Wrap|Line Numbers
  1. @echo off
  2. "[full path to local Access application]" "[full path to database]"/x "[Name of Macro]"
  3. cls
For example:

Expand|Select|Wrap|Line Numbers
  1. @echo off
  2. "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "\\Pclfile2\ccwork\Communication Business System\media calendar.mdb"/x "GraphicsRequest"
  3. cls
Save the file as *.bat
Thanks much!
I'll let you know how it worked!
Jun 18 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Rasmus Fogh | last post by:
Someone raised the question of automatic code generation a few weeks back. And yes, we (CCPN) are using automatic Python code generation in a major way. Basically we are making data models in...
7
by: William Ryan | last post by:
Are you using an intranet or the internet to push the updates? If the internet, you probably can't get there without a web server. If you are using an intranet, you can do it from a shared...
2
by: Filippo | last post by:
Hi, i have a problem about the CLIENT-SERVER architecture procedure. Well , i have an application in VB with ADO connection to a table in a database on a SQLSERVER 7.0 . Is possible to do that...
6
by: Gert van der Kooij | last post by:
Hi, It's no problem to define the automatic maintenance using the wizard but I want to use commands to automate automation. I captured the SQL statements when activating the maintenance but that...
1
by: Michel Esber | last post by:
Hello, Linux RedHat AS4 running DB2 V8 FP11. I have followed the docs at http://tinyurl.com/qckrn and enabled automatic statistics collection. It has been 2 days since I updated my DB cfg and...
1
by: rdemyan via AccessMonster.com | last post by:
My App has 10 or so tables that we provide that contains proprietary data. This data will need to be updated once or twice a year. I would like some comments, suggestions on my proposed strategy...
58
by: Jorge Peixoto de Morais Neto | last post by:
I was reading the code of FFmpeg and it seems that they use malloc just too much. The problems and dangers of malloc are widely known. Malloc also has some overhead (although I don't know what is...
2
by: raaman rai | last post by:
I have turned up Automatic Updates in my system in it daily updates and ask for restart after successful installation. Today again my system was restarted on its own after the updates but...
0
by: raaman rai | last post by:
This is quite irratiting to find out that my system is enabled with automatic updates and it periodically updates my pc with the latest updates. But recently i encountered network problem once the...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.