C
charles bosen via AccessMonster.com
I have a status drop-down on my form. I need to send an email to a person
when the status is changed to closed. My code is not working.
Can anyone help me with this?? Here's my code:
Private Sub Status_AfterUpdate()
Me.Status = Status
If Me.Status = closed Then
' If closed, Notify person reported'
MsgBox "Person Reported this Issue Is Notified"
DoCmd.SendObject acSendNoObject, , , Me.Reportedby, , , "Discrepancy Issue
Tracking No: " & Me.TrackingNo & "", "THIS ISSUE HAS BEEN CLOSED. -
Closed Date: " & Date & """"
Else
Exit Sub
End If
End Sub
when the status is changed to closed. My code is not working.
Can anyone help me with this?? Here's my code:
Private Sub Status_AfterUpdate()
Me.Status = Status
If Me.Status = closed Then
' If closed, Notify person reported'
MsgBox "Person Reported this Issue Is Notified"
DoCmd.SendObject acSendNoObject, , , Me.Reportedby, , , "Discrepancy Issue
Tracking No: " & Me.TrackingNo & "", "THIS ISSUE HAS BEEN CLOSED. -
Closed Date: " & Date & """"
Else
Exit Sub
End If
End Sub