TImer Event not stopping

G

Gina

I want the TimerInterval to reach 1000 (1 second), Call RefDates and then
stop. I know I'm tired so be gentle as to why this is not working.

If Me.TimerInterval = 1000 Then
Call RefDates
Else
Me.TimerInterval = 0
End If

Thanks guys!
 
R

Rick Brandt

Gina said:
I want the TimerInterval to reach 1000 (1 second), Call RefDates and then
stop. I know I'm tired so be gentle as to why this is not working.

If Me.TimerInterval = 1000 Then
Call RefDates
Else
Me.TimerInterval = 0
End If


Just set it to 1000 and then have two lines.

Call RefDates
Me.TimerInterval = 0
 
R

Rick Brandt

Gina said:
Rick... not working the Call RefDates not executing. (Heh, that's 50/50 not
bad) :cool:

Have you tried putting in a break-point and stepping through the code manually?
I can't see any reason why the call statement would not run.
 
G

Gina

My mistake it's running but too fast perhaps I should explain... the form
opens you click the tab page (by then the code has run). I guess what I
want to do is loop it and run for 1 second pause and run when the tab page
is selected again. I think I may have to revisit this tomorrow because I
know I should be to stop and start this Timer but I can either keep it
running or stop it from running. Or as your code suggestion does run it for
a short period of time.
 
G

Gina

Oops.. that 2 out of 2 :cool:


Rick Brandt said:
Have you tried putting in a break-point and stepping through the code manually?
I can't see any reason why the call statement would not run.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top