DaniBoy
Registered User.
- Local time
- Today, 09:05
- Joined
- Nov 18, 2001
- Messages
- 174
Hello, well am still trying to get this "on timer: code to work, I have tried two ways :!!
#1) I used this code:
Private Sub Form_Timer()
If Format(Time(), "hh nn ss") = "03,05,00" Then
MsgBox "It Works!!!"
End If
End Sub
I dont know if the format is bad!! But it does nothing
#2)
Private Sub Form_Timer()
If Time > TimeSerial(3, 28, 0) Then
MsgBox "It Works!!!"
End If
End Sub
with time interval = 5000
it works, But it does it before the time 3:05:00 pm and if I change it to "< then" it never does it when it changes when it changes to the right time or more. Plus every 5 seconds it repeats it.
How do I make it so it only do it once a day? Do I have to put an interval of 864,000,000? seems wrong!!
What is wrong with the first code?
Thank you
Daniboy

This are the links where I got the codes!!
http://www.access-programmers.co.uk...ort+timer+event
http://www.access-programmers.co.uk...ort+timer+event
#1) I used this code:
Private Sub Form_Timer()
If Format(Time(), "hh nn ss") = "03,05,00" Then
MsgBox "It Works!!!"
End If
End Sub
I dont know if the format is bad!! But it does nothing
#2)
Private Sub Form_Timer()
If Time > TimeSerial(3, 28, 0) Then
MsgBox "It Works!!!"
End If
End Sub
with time interval = 5000
it works, But it does it before the time 3:05:00 pm and if I change it to "< then" it never does it when it changes when it changes to the right time or more. Plus every 5 seconds it repeats it.
How do I make it so it only do it once a day? Do I have to put an interval of 864,000,000? seems wrong!!
What is wrong with the first code?
Thank you
Daniboy
This are the links where I got the codes!!
http://www.access-programmers.co.uk...ort+timer+event
http://www.access-programmers.co.uk...ort+timer+event
Last edited: