You will need a variable to store the no. of loops. You can use a hidden textbox on your form for this say txtLoops. Before starting the timer, set its value to zero.
Code:
Me.txtLoops.value=Me.txtLoops.value+1
If Me.txtLoops.value =4 Then
Me.TimerInterval=0
'your code goes here
Else
If Me.CurrentRecord = Me.Recordset.RecordCount Then
DoCmd.GoToRecord , , acFirst
End If
If Me.CurrentRecord + 5 > Me.Recordset.RecordCount Then
DoCmd.GoToRecord , , acLast
Else
DoCmd.GoToRecord , , acNext, 5
End If
End If
Mark this thread as solved if this code solves your problem.