hey guys,
I have a macro which sends a report from Access, i used the Scheduled task to run the macro on a specific time everday. i Placed the below code in the Timer() Event of the main form. the macro is running fine but the reports are being sent twice.????Advise needed
Static intCounter As Integer
Private Sub Form_Timer()
If intCounter > 1 Then
Me.TimerInterval = 0
DoCmd.Quit
Else
DoCmd.RunMacro "mcrTest"
End If
intCounter = intCounter + 1
End Sub