Hi
I us the following code to send an e-mail from my database I thought it might be helpful. The timerinterval is set in the form load. Best of luck
Me.TimerInterval = 60000
Private Sub Form_Timer()
On Error GoTo ErrorHandler
Dim dtrunreport As Date
Dim dtCurTime As Date
dtrunreport = Format(#9:55:00 AM#, "hh:mm")
dtCurTime = Format(Time(), "hh:mm")
If dtCurTime = dtrunreport Then
DoCmd.SendObject acSendReport, "No Assignment Report", acFormatHTML, "
[email protected]", "", "", "NO Assignment Report", "Suppliers with NO ASSIGNMENT", True
ErrorHandlerExit:
Exit Sub
ErrorHandler:
MsgBox "Error No: " & Err.Number & "; Description: " & Err.Description
Resume ErrorHandlerExit
End If
End Sub
Brendan Bartley