run if clock =

shutzy

Registered User.
Local time
Today, 13:27
Joined
Sep 14, 2011
Messages
775
i have a real time clock. i want to run daily tasks when the clock is x

something like

Code:
If Me.txtClock = 10:15 then
MsgBox "you have chosen to run at 10:15!", vbOKOnly, "Weldone!."

the thing i am finding is that it doesnt liek the : so i put it in "xxx" and it still didnt work. is there anyway of doing this?
 
Try
If TimeValue(Me.txtClock) = TimeValue("10:15") Then
 
thank you. i want to use this to run daily tasks. these tasks have been the bain of my life. now i wont have to worry about them at all.

thank you
 
You're welcome, (now your life can move on :) :)).
 

Users who are viewing this thread

Back
Top Bottom