G
Guest
What is wrong with this code? Can you help?
Private Sub Form_Open(Cancel As Integer)
If Date = DateAdd("d", -10, Me.DueDate) Then
MsgBox "The reminder mail will now be sent", vbOKOnly, "E Mail Due"
DoCmd.SendObject acReport, "CDRLReport", "RichTextFormat(*.rtf)",
Forms!frmContractInfo Mainform!PMemailAddress,
Forms!frmContractInfo Mainform, , "", "A CDRL is Due in 10 Days", "Please
submit your CDRL by the due date", False, ""
End If
End Sub
Thanks a lot.
Private Sub Form_Open(Cancel As Integer)
If Date = DateAdd("d", -10, Me.DueDate) Then
MsgBox "The reminder mail will now be sent", vbOKOnly, "E Mail Due"
DoCmd.SendObject acReport, "CDRLReport", "RichTextFormat(*.rtf)",
Forms!frmContractInfo Mainform!PMemailAddress,
Forms!frmContractInfo Mainform, , "", "A CDRL is Due in 10 Days", "Please
submit your CDRL by the due date", False, ""
End If
End Sub
Thanks a lot.