On Timer Event, execute only Once

mikejaytlabustro

Access Database 2007 PH
Local time
Today, 22:59
Joined
Feb 11, 2013
Messages
93
Hello access-programmers!

Got a problem here:

Timer Interval = 5 Seconds

Private Sub Form_Timer()

My code here..

End Sub

The code repeats every 5 seconds, what I want to do is to execute it only once.
I have no idea how to solve this one..

Thank you in advance!
 
Try setting the timer interval to 0 at the end of your code.
 
Great! Thanks to you pbaldy


Private Sub Form_Timer()

My code here..
Me.TimerInterval=0

End Sub
 

Users who are viewing this thread

Back
Top Bottom