Solved

Application.OnTime in VB

Posted on 2002-03-08
9
368 Views
Last Modified: 2012-06-27
In VBA you could use Application.OnTime.
How do i do this in VB, when i want something to happen on a certain time for example every morning at 06:00??
Is there any function for this to be done whitout using an timer control?
0
Comment
Question by:Johan_Ihlberg
9 Comments
 
LVL 2

Accepted Solution

by:
tppradeep18 earned 50 total points
ID: 6850025
The following link gives nice information about how to use timer event without using timer control. HOpe ths helps.

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q180736
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 6850097
you better use the scheduler from Windows that will launch your app at 6.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6852252
I am with emoreau, but if you insist to use code follow previous link.
Cheers
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 6869336
please maintain
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 69

Expert Comment

by:Éric Moreau
ID: 7060554
This question appears to be abandoned. A question regarding it will be left in the Community Support
area; if you have any comment about the question, please leave it here.

Unless there is objection or further activity, one of the moderators will be asked to accept the comment
of <emoreau>.

The link to the Community Support area is:
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

DO NOT ACCEPT THIS COMMENT AS AN ANSWER.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7061035
I would like to see splitting points between emoreau and tppradeep18 since both provided valid solutions.
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 7061688
Personnaly, I would not use a VB app itself to wait for its time. I prefer having a scheduler, schedule the job, and free resources after the job is complete. Also, when schedule, the PC doesn't need to be logged.

But I don't have problem splitting points.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7063828
As you could see, my first comment goes in the same way of thinking like yours. I like the split stuff since both of you deserve the points.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7065642
Thank you both, points have been split.

Points for emoreau -> http://www.experts-exchange.com/jsp/qShow.jsp?qid=20309549

Moondancer - EE Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

864 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now