PC Review


Reply
Thread Tools Rate Thread

Periodically Trigger Code

 
 
=?Utf-8?B?TWF0dCBTb25pYw==?=
Guest
Posts: n/a
 
      7th Oct 2005
I want a piece of code to run every 3.5 hours. How do I get that to happen
without relying on a form to be open to count on the form timmer? Or is
there a way to have a hidden form do it?
 
Reply With Quote
 
 
 
 
Ron Weiner
Guest
Posts: n/a
 
      7th Oct 2005
You can use a timer on a hidden form, or you could create a single purpose
database whose start up form would execute the critical code and then close
the database when it was done. You could schedule this database to open
using the Windows Task Scheduler application. This way the critical process
runs every n.n hours as long as the computer is turned on. If installed on
a server that is always on your critical code will execute every n.n hours
till the server is reconfigured or put out to pasture.

--
Ron W
www.WorksRite.com
"Matt Sonic" <(E-Mail Removed)> wrote in message
news:6221CFE2-F6E8-4D00-ACC9-(E-Mail Removed)...
> I want a piece of code to run every 3.5 hours. How do I get that to

happen
> without relying on a form to be open to count on the form timmer? Or is
> there a way to have a hidden form do it?



 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWF0dCBTb25pYw==?=
Guest
Posts: n/a
 
      7th Oct 2005
I couldn't figure out how to hide the form but here it is.

DoCmd.OpenForm "HiddenForm", , , , , acHidden

"Ron Weiner" wrote:

> You can use a timer on a hidden form, or you could create a single purpose
> database whose start up form would execute the critical code and then close
> the database when it was done. You could schedule this database to open
> using the Windows Task Scheduler application. This way the critical process
> runs every n.n hours as long as the computer is turned on. If installed on
> a server that is always on your critical code will execute every n.n hours
> till the server is reconfigured or put out to pasture.
>
> --
> Ron W
> www.WorksRite.com
> "Matt Sonic" <(E-Mail Removed)> wrote in message
> news:6221CFE2-F6E8-4D00-ACC9-(E-Mail Removed)...
> > I want a piece of code to run every 3.5 hours. How do I get that to

> happen
> > without relying on a form to be open to count on the form timmer? Or is
> > there a way to have a hidden form do it?

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Some Code is Periodically Skipped Michael Microsoft Access 1 22nd Feb 2012 02:27 PM
Run VBA code only worksheet change, but don't trigger worksheet_change event based on what the code does ker_01 Microsoft Excel Programming 6 3rd Oct 2008 09:45 PM
Start Menu Periodically stops working Morac Windows XP Help 1 31st Aug 2004 03:53 AM
"AutoPlay" application window keep appearing for a few seconds periodically every ten seconds TCMa Windows XP Help 0 29th Jun 2004 09:42 PM
Need VBA code to periodically zero out 10,000 cells lothario Microsoft Excel Programming 4 14th Oct 2003 03:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:50 PM.