473,396 Members | 2,030 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,396 software developers and data experts.

OnTimer event interval - I need to run it when form is opened

MLH
I have a form (frmCron) whose code in the OnTimer event property
is set by the TimerInterval property to run 86400000 milliseconds. I
open this form in the AutoExec sequence when the mdb file opens.
I was hoping the code ran as soon as frmCron opened and then
every 86400000 milliseconds thereafter. But, of course, that is not
the case.

How can I run the code as soon as frmCron is opened and then
every 86400000 milliseconds thereafter?
Jan 12 '06 #1
2 2165

"MLH" <CR**@NorthState.net> schreef in bericht news:q6********************************@4ax.com...
How can I run the code as soon as frmCron is opened and then
every 86400000 milliseconds thereafter?


Set TimerInterval to 10 and open/close your db every day at the same time?
Is this a db that runs 24/7 ??

I guess you only need something like a TimerInterval of 10 or so.
Run your code and reset the TimerInterval the first time like ...

Sub Form_Timer()
Me.TimerInterval=86400000
Your code here ...
End sub

Arno R

Jan 12 '06 #2
MLH <CR**@NorthState.net> wrote in
news:q6********************************@4ax.com:
I have a form (frmCron) whose code in the OnTimer event
property is set by the TimerInterval property to run 86400000
milliseconds. I open this form in the AutoExec sequence when
the mdb file opens. I was hoping the code ran as soon as
frmCron opened and then every 86400000 milliseconds
thereafter. But, of course, that is not the case.

How can I run the code as soon as frmCron is opened and then
every 86400000 milliseconds thereafter?


In the form_open event,
Call OnTimer

--
Bob Quintal

PA is y I've altered my email address.
Jan 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Luke Duke | last post by:
vc++ v7.1 Whenever I add an OnTimer message handler via the properties pane, I get the following code added to my files: afx_msg void OnTimer(UINT nIDEvent); - and - void...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
4
by: Greg Chu | last post by:
Hi, all, I have form which displays a data set and also a timer to read data every one minute from a xml source and refresh the form. The user click on a button on the form and bring up...
2
by: Henry Stockbridge | last post by:
Hi, I have a form that I need loaded and visible prior to another form being loaded (hidden.) I am opening the main form, then using the OnTimer event (with a timer interval of 2000) to open...
7
by: Ron | last post by:
Hi All, Have just discovered this great tool to hide a form if it hasn't been used in awhile. However, I have a form that can call up another screen (modal) that can then call up another one...
2
by: Jimmy | last post by:
Will setting the ontimer interval to a low number cause memory problems down the Line? I have a text box to display the time and set the forms ontimer interval to 1000ms (1 second) so the box...
8
by: ontherun | last post by:
Hi All, I want to include some code for the OnTimer event in my Form "frmDueDateList" But when i open the form in the design view and checked the properties menu, i could not find the OnTimer...
2
by: Salad | last post by:
This was an interesting problem. I open a form, CalledForm. When a record is presented in CalledForm I needed to check the status of something. If the status is met, I needed to present...
3
by: =?Utf-8?B?d2Vic211cmY=?= | last post by:
dear newsgroup member, I want to access a label in a form (form1.cs) from a class file (periodicUpload.cs). The label in form1.cs is a status Indicator. PeriodicUpload.cs is a timer class file....
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.