E
Enigo
Hi,
I am trying to automate a process within my database. The process being that
when a Super User rejects a transaction it will generate an email to the user
who last modified the record with details of why the transaction has been
rejected.
Here is the code I have been trying to use.
Private Sub Form_AfterUpdate()
If [AR Manager Approval] = "Rejected" Then
DoCmd.SendObject acSendNoObject, _
To:=[LastModifiedBy], _
Subject:="Your transaction request has been rejected", _
MessageText:="Your request to have" & [CustomerName] &
[Invoice Number] & _
" sent to debt refferal has been rejected for the following
reasons - " & _
[Rejected Reason]
End If
End Sub
Can someone please help with this query?
I am trying to automate a process within my database. The process being that
when a Super User rejects a transaction it will generate an email to the user
who last modified the record with details of why the transaction has been
rejected.
Here is the code I have been trying to use.
Private Sub Form_AfterUpdate()
If [AR Manager Approval] = "Rejected" Then
DoCmd.SendObject acSendNoObject, _
To:=[LastModifiedBy], _
Subject:="Your transaction request has been rejected", _
MessageText:="Your request to have" & [CustomerName] &
[Invoice Number] & _
" sent to debt refferal has been rejected for the following
reasons - " & _
[Rejected Reason]
End If
End Sub
Can someone please help with this query?