G
Gee
I'm using this, that I found in another post here to have a ticking timer:
Private Sub Form_Timer()
Dim currentTime As Date
currentTime = Format(Now(), "h:m:s")
Me.txtCurrentTime.Value = currentTime
End Sub
It works fine, except what I need it for is to trigger an email after 15
minutes.
NOC is the field where I want the result...I'll be building an IF statement
based on NOC, like if NOC = 15 then send an email to Tech2..I want an email
to be sent if the difference between [CallDate] and the timer is 15 minutes.
I tried this but it just won't work, I thought that I could get the NOC
field to update if I used "Change" on the ticking timer field of
txtCurrentTime:
Private Sub txtCurrentTime_Change()
NOC = DateDiff("n", [CallDate], [txtCurrentTime])
End Sub
Thank you in advance for any help,
Gee
Private Sub Form_Timer()
Dim currentTime As Date
currentTime = Format(Now(), "h:m:s")
Me.txtCurrentTime.Value = currentTime
End Sub
It works fine, except what I need it for is to trigger an email after 15
minutes.
NOC is the field where I want the result...I'll be building an IF statement
based on NOC, like if NOC = 15 then send an email to Tech2..I want an email
to be sent if the difference between [CallDate] and the timer is 15 minutes.
I tried this but it just won't work, I thought that I could get the NOC
field to update if I used "Change" on the ticking timer field of
txtCurrentTime:
Private Sub txtCurrentTime_Change()
NOC = DateDiff("n", [CallDate], [txtCurrentTime])
End Sub
Thank you in advance for any help,
Gee